> I made a very simple modelviewer which lights & rotates a model
> around the Y axis.. But the light seems to move or fade with
> every turn of the model. Maybe one of you knows what's going on..?
> The code with makefile & model can be downloaded from:
I don't have your code (on a pc) but it is simply a matter of how you place
your light in the world. If you position it before your camera transform, or
after a fresh LoadIdentity(), it will be fixed, like a miners helmet light.
If OTOH you position it just like any object is positioned, then it will move
as you move the camera, it all depends on how you want it. I believe both the
Superbible and red book describe setting up lights in different fashions.
For PC & Mac 3-D graphics shareware & more: http://www.zintel.com