Lighting problems in OpenGL

Started by
4 comments, last by richardve 23 years, 9 months ago
In the demo from Bruno I saw that there was strange lighting when looking at different angles. I''ve got the same problem and I don''t know how to get normal lighting. Please help me because I''ve been searching for a week now and I still don''t know how to fix it!
Advertisement
Can you add a link to Bruno''s demo? I don''t read all threads (probably more people don''t).

are positioning the lights after u position the camera/viewer
I wasn''t defining any normals in the demo... Opengl was doing the lighning the way he wanted.
You have to define normals for each polygon on the scene.
Take a look at the NEHE tutorials.. he teaches how to define normals for a cube.
Bruno
baskuenen: This is the link to Bruno's demo http://www.gamedev.net/community/forums/topic.asp?topic_id=16846&forum_id=27&Topic_Title=could+you+check+my+demo%3F%3F%3F&forum_title=NeHe+Productions&M=False&S=True

zedzeek: no, I only position the light when initializing OGL.

Bruno: When loading an object I define the normals too, I think I'm doing something wrong.


Edited by - richardve on July 15, 2000 6:35:46 AM
It works!

My normals were good, but I didn''t update the light each frame (after the camera).


Thanks for the replies, they helped me very much!

This topic is closed to new replies.

Advertisement