PDA

View Full Version : The relationship between glScalef() and light intensity



owen
08-19-2002, 07:24 PM
I used to call glScalef(...) to zoom in/out the scene. But I found that the light brightness will be reduced if I zoom in the scene by increase the glScale(...) parameters. And I am sure that other gl parameters are unchanged while glScale paramters increasing.
Can you tell me the relationship between brightness and scale? Thanks.

zed
08-19-2002, 07:29 PM
the normals are also scaled.
this is answered in the faq www.opengl.org (http://www.opengl.org) rightside of page

Miguel_dup1
08-19-2002, 07:48 PM
Use glEnable(GL_NORMALIZE);