From: Antony R. <an...@li...> - 2002-07-09 12:34:35
|
hmmm.....forget what I said. ----- Original Message ----- From: "Antony Ribot" <an...@li...> To: <gl4...@li...> Sent: Tuesday, July 09, 2002 1:30 PM Subject: Re: [gl4java-usergroup] lighting problem > If you want your light to stay in a static position why not put it in your > init method? > > Antony > > ----- Original Message ----- > From: "Combe, Colin" <C....@na...> > To: <gl4...@li...> > Sent: Tuesday, July 09, 2002 1:11 PM > Subject: [gl4java-usergroup] lighting problem > > > > 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>> > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Stuff, things, and much much more. > http://thinkgeek.com/sf > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup |