Archived

This topic is now archived and is closed to further replies.

Lighting problems in OpenGL

This topic is 6359 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites