Incorrect lighting calculations in OpenGL

By: Mat Duafala

Abstract: Lighting values are messed up in OpenGL
Why is the lighting in my scene messed up after I have scaled my objects?
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.