🎉 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!

Lights!

Started by
1 comment, last by ankan666 24 years, 1 month ago
Hi, i''ve written a small app which loads a model. I have calculated all normals for all faces, and the lighting looks great as long as i rotate the model around the Y-axis. If I rotate it around another axis, the lightsource seem to rotate along with the model! It looks really weird.. anyone know a solution to this problem?
Advertisement
ok, I found on thing....

If I recalculate the normals every frame, i get a correct lighting, is this really neccessary?
Hi, I''m sorry, I can''t solve your problem but if you like, I would like to know how do you recalculate the normals every frame. Could you possibly post a piece of code.

If you want please e-mail me at tripuno@tiscalinet.it

This topic is closed to new replies.

Advertisement