PDA

View Full Version : just checking, rotated objects and normals?



Andy Gilbert
04-14-2010, 03:17 AM
Hi, just checking, if i create a cube from a calllist where the normal where set, i then rotate the cube, do the normals i set in the calllist rotate with it (or recalculate)?

Thanks
Andy

FrimaMichael
04-14-2010, 06:31 AM
Yes they will remain normalized and correct if you perform translation or rotation on them.

However, if you do some scale transformation you will need to normalize them again. But if you also want to do scale and want OpenGL to normalize them for you, you can always enable the state GL_NORMALIZE (glEnable(GL_NORMALIZE);)

Hope it helps !

Mick