I colour each vertex of a height map based on its height (using a HSV values). However when the triangles are rendered the colours of adjacent triangles do not match. I think it is to do with the colour interpolation used by OpenGL. What is the OpenGL scheme? Is it a straight interpolation of R G and B obetween vertices or what??
Originally posted by johnh:
I think it is to do with the colour interpolation used by OpenGL. What is the OpenGL scheme? Is it a straight interpolation of R G and B obetween vertices or what??
What else???
If you think that you can interpolate HSV colors in RGB space - RTFM…
You should use 1D texture with your colormap.