From: Combe, C. <C....@na...> - 2002-07-09 12:12:07
|
hi, i been having some problems trying to turn an object around - the light source keeps moving with it. I'm fairly new to all this, but the advice i got from a discussion group over at openGL.org was that a display method with the following structure - LoadIdentity Position the camera Push Position the light Pop For each object ....Push ....Position the object ....Draw the object ....Pop Swap buffers should allow me to rotate objects independantly of the light source, the desired effect. I think that this is what the attatched code does - but when i run it the light source turns with the object. Whats going wrong? thanks, col p.s. Sven - if you're reading this - thanks for the advice you gave me about adding and removing canvases from frames a couiple of weeks ago - i've not dowloaded the source from the cvs tree to try it yet but will give it a go soon. <<GLApp.java>> |