Am I doing anything bad in these calls? Thanks in advance for the help.

trinitrotoluene

12-10-2008, 04:38 PM

Do you call glEnable(GL_AUTO_NORMAL) somewhere to enable the generation of normal vectors for the NURBS? I have tried something similar to your code and it work well.

dletozeun

12-11-2008, 03:34 AM

Or you can also specify precomputed normals with gluNurbsSurface using GL_MAP2_NORMAL as surface type according to the end of this page (http://www.opengl.org/sdk/docs/man/xhtml/gluNurbsSurface.xml).

You got a black surface, because with lighting is enabled and when you call glutSolidSphere, this one set the sphere normals. Then when you draw the nurb surface without specifying vertex normals, the last specified normal (from the sphere) is used and could lead to unexpected results.