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.
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.
Thanks