10-18-2000, 11:58 PM
Hi. I'm quite new to GL, and trying to add some lighting to my little 3d engine.
I'm a little confused by the positioning of a light... are the coordinates in local object space, so that I have to tranform the global coords to each objects space bvefore calling glLight(GL_POSITION,... ), or have I done something else wrong? (the lighting behaves rather strangely when I try to specify the position in global coordinates)
thanx,
/rikard
I'm a little confused by the positioning of a light... are the coordinates in local object space, so that I have to tranform the global coords to each objects space bvefore calling glLight(GL_POSITION,... ), or have I done something else wrong? (the lighting behaves rather strangely when I try to specify the position in global coordinates)
thanx,
/rikard