PDA

View Full Version : Color gradients on NURBs



cga
08-08-2003, 09:29 PM
I know I can change the color of each vertex of any polygon to obtain a polygon that is smooth shaded with a gradient of those colors.
However, I was wondering if there is a way to achieve a similar effect with GLU for NURBs. I'd like to basically pass different colors attached to the vertices that form the hull of the object and have opengl do the proper interpolation, as the NURB object is being tesselated.
Thanks.

Rob The Bloke
08-10-2003, 09:00 AM
you use the glunurbs to generate your colours in the same way as you do for vertices/tex coord etc.