• Advertisement
Sign in to follow this  

GL_NORMALIZE

This topic is 4978 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

This may seem stupid, but do I need to call
glEnable(GL_NORMALIZE);
//or
glEnable(GL_RESCALE_NORMALIZE);
when I have static vertices and already calculated my normals? thanks

Share this post


Link to post
Share on other sites
Advertisement
No, you need to do that only if you rescale stuff (using the glScalex function).

Share this post


Link to post
Share on other sites
If you have already calculated the normals and they are vectors of length 1(normalized vectors), than neither of these calls is necessary because the GL_NORMALIZE only makes your normal vectors to length 1.

Share this post


Link to post
Share on other sites
Follow this rules in general :
- if you never call glScale, do not enable any normalizing,
- if you use uniform scaling (eg glScale(2,2,2)) then enable GL_RESCALE_NORMALIZE,
- if you use non-uniform scaling (eg glScale(1,4,2)) then enable GL_NORMALIZE.

[Edited by - vincoof on July 8, 2004 5:30:08 AM]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement