alok47
07-30-2001, 04:39 AM
I was trying to verify the effect of scaling the surface normals, but instead of some change in the lighting effect, the object ( which is a cube ) shape is getting distorted.
My code is like this-
1. setting unit normals for the object using
glNormalPointer.
2. calling glScale with some value to scale the normals
3. and then drawing the object.
As a result of this the object is getting scaled. Why its happenin
I have rendered another object like this
1. calling the first two steps above
then calling glEnable ( GL_RESCALE_NORMAL ) And then drawing the object.
the result is same , the object getting distorted.
My code is like this-
1. setting unit normals for the object using
glNormalPointer.
2. calling glScale with some value to scale the normals
3. and then drawing the object.
As a result of this the object is getting scaled. Why its happenin
I have rendered another object like this
1. calling the first two steps above
then calling glEnable ( GL_RESCALE_NORMAL ) And then drawing the object.
the result is same , the object getting distorted.