Incorrect lighting calculations in OpenGL

By: Mat Duafala

Abstract: Lighting values are messed up in OpenGL
Question:
Why is the lighting in my scene messed up after I have scaled my objects?
Answer:
You have to re-normalize your surface normals after you scale an object. To do this call glEnable(GL_NORMALIZE); . Note: This does Add some overhead to the runtime version of your product.

Published on: 3/30/2000 12:00:00 AM

Server Response from: ETNASC04

Copyright© 1994 - 2013 Embarcadero Technologies, Inc. All rights reserved.