Im using standart lightning routines (red book) and my calculation of normals are completely right (tested). But when I turn on lightning (GL_FLAT or GL_SMOOTH, TEXTURED OR NOT) nothing changes. Whats the problem?
Lot of thanks.
Im using standart lightning routines (red book) and my calculation of normals are completely right (tested). But when I turn on lightning (GL_FLAT or GL_SMOOTH, TEXTURED OR NOT) nothing changes. Whats the problem?
Lot of thanks.
try
glEnable(GL_COLOR_MATERIAL);
glColorMaterial(GL_FRONT,
GL_AMBIENT_AND_DIFFUSE);
this might help
but a little more code of what you have done so far might help also
[This message has been edited by dabeav (edited 05-22-2002).]
Its already enabled, thanks for your help, Ill go home now (Im in job) and post the source code here.
Thanks