Skip to main content
gamedev.net
🔒 Locked

Normals!?!

Started by g3mac_uk Jul 1, 2000 at 5:59 AM 3 replies 500+ views
Original Post
g3mac_uk
g3mac_uk
In my 3d engine the lighting is screwed up really badly. Example: LoadData Rotate_World Draw_World Rotate_Objects Draw_Objects Do I need to rotate face normals by the World rotation? Thanks for any advice...
XBTC
XBTC
If you do your lighing-calcs after the rotations\transformations (I mean if you use the rotated\translated vertices for your light-calcs)you´ll have to rotate your face-normals.

HTH,XBTC!

Edited by - XBTC on July 1, 2000 1:12:30 PM
shamen
shamen
Dont forget, if you scale an object, you''ll have to re-calculate your normals, or let OpenGL generate them for you (slow)! Avoid glScale.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.