Lights!
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?
ok, I found on thing....
If I recalculate the normals every frame, i get a correct lighting, is this really neccessary?
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
If you want please e-mail me at tripuno@tiscalinet.it
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement