Advertisement

GL Lights from Tutorials

Started by January 12, 2001 01:33 AM
2 comments, last by Running_Wolf 23 years, 10 months ago
I can''t seem to get the lights to work properly in my program. When I do the tutorial it works but in my program when lighting is enabled it is very dark and won''t change no matter what I do.
L.I.G. == Life Is Good
It can be anything but a common problem is to set the normals correct.
Advertisement
I just learned about lighting myself, and I had that same problem. It was fixed as soon as I defined materials for my vertices. Look up glMaterialfv and it may fix your problem.
--Riley
try this
float amb[] = {10,10,10,10};
glLightfv(...,GL_AMBIENT,amb);

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement