TheBlob
01-09-2002, 08:39 AM
Hi!
I am rendering a landscape via heightfield.
When the "camera-rotation" is done with an angle of 0°, the left side of a hill isenlighted and the right side is dark. When Now I let the camera rotate by 180°. Then the the lighting is opposite, the right side is enlighted by my light and the left is dark....but isnīt that wrong???
When you stand on a mountain and look at a hill and then move your head, do you see the two sides of the hill in diffrent enlightments???
I think my problem is, that I let the "camera" rotate by glRotatef....and this rotates only my hieghtfield and not the lights with it....
How can I correct this??
I am rendering a landscape via heightfield.
When the "camera-rotation" is done with an angle of 0°, the left side of a hill isenlighted and the right side is dark. When Now I let the camera rotate by 180°. Then the the lighting is opposite, the right side is enlighted by my light and the left is dark....but isnīt that wrong???
When you stand on a mountain and look at a hill and then move your head, do you see the two sides of the hill in diffrent enlightments???
I think my problem is, that I let the "camera" rotate by glRotatef....and this rotates only my hieghtfield and not the lights with it....
How can I correct this??