Login  Register

Re: Adding color onto a model

Posted by Sven Gothel on Jun 25, 2013; 6:59pm
URL: https://forum.jogamp.org/Adding-color-onto-a-model-tp4029468p4029469.html

On 06/25/2013 08:26 PM, Sesquipedaliac [via jogamp] wrote:

> Hi everyone,
>
> I'm rather new to Java and JOGL, and had a question about drawing a color onto
> a model.
>
> For example, I load a 3D model of a rod and then want to have the code draw
> and update a color gradient along the rod (say, for temperature).
> Or another scenario: I've got a model of a satellite, and as it spins and
> moves around a globe, I want the part of the satellite visible from a point on
> the globe to be colored.
>
> Is it possible to do this?
>
sure is.

pls lookup some good OpenGL ES2 and/or OpenGL 3/4 core profile
tutorials using the shader language (GLSL). I wouldn't waste time learning the
old fixed function pipeline anymore. We have a few info in this regard in our
wiki.

Then .. you can also check our unit tests and demos as well,
but AFAIK other OpenGL tutorials are more suitable.

When you got a good idea about OpenGL itself,
its pretty simple to use JOGL.

Cheers, Sven



signature.asc (911 bytes) Download Attachment