🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
Lighting problems in OpenGL
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!
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
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement