PDA

View Full Version : Lightning - Nothing happens



lsdi
05-22-2002, 12:42 PM
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.

dabeav
05-22-2002, 12:53 PM
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).]

lsdi
05-22-2002, 12:56 PM
Its already enabled, thanks for your help, Ill go home now (Im in job) and post the source code here.


Thanks http://www.opengl.org/discussion_boards/ubb/smile.gif