PDA

View Full Version : Scale & Lights



03-24-2001, 06:26 AM
When I make a "scale" on a 3D shape (ex a sphere) happen that light on it change drastically... Exactly when I "enlarge" it, the sphere become darker while, when I "reduce" it, the sphere become very bright... Where is my error ? What can I do ?

CS
03-24-2001, 08:51 AM
Use ...
glEnable(GL_NORMALIZE);

[CS]

Dodger
03-24-2001, 11:41 AM
or glEnable(GL_RESCALE_NORMALS) if available. Might be slightly faster then GL_NORMALIZE, depending on the OpenGL-implementation.

03-24-2001, 02:16 PM
Thanks a lot!!!

It works finally http://www.opengl.org/discussion_boards/ubb/smile.gif

I love you !!!