Jump to content
  • Advertisement
Sign in to follow this  
sarnab75

Untitled

This topic is 3619 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I need to do the following: Say the maximum displacement of a node is A. I want to use this value to manipulate the colour (red for largest , blue for lowest, interpolation of colours in between)for every vertices on my surface (would like to pass by green, yellow,.. for instance.). Currently I can only use this: glColor3f(Displacement1/A,0,1 - (Displacement1/A)); glVertex3d(x1,y1,z1); This will only give me shade of red to blue. Can anyone help me to use colours so as to describe the distribution/ analysis of displacements of nodes on the surface. Someone mentioned 1D texture and map it to the values but I haven't a clue how to do it. Are there any examples I can refer to? Regards.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!