Hi Martin, I have #if'def out the same section you've commented out and then osglight runs without anything being but any model that is loaded, This all looks ok.
Some general notes, the bounding sphere of the model encompasses any position lights in the scene, and the trackball manipulator sets its default home position to the center of the root nodes bounding sphere. If you wish to override the home position of the trackball manipulator then just use the manipulators setHomePosition method. Robert. On 1/17/07, Martin Tapp <[EMAIL PROTECTED]> wrote:
Hi Robert, I'm checking osg 1.2 version of the file osglight.cpp. Comment out lines 255 to 293. I've attached the modified file. Thanks, Martin -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Wednesday, January 17, 2007 2:57 PM To: osg users Subject: Re: [osg-users] osglight Hi Martin, Which lines did you change? I have just reviewed the osglight.cpp example (in CVS) can can't spot what you might have commented back in. Robert. On 1/17/07, Martin Tapp <[EMAIL PROTECTED]> wrote: > > > Hi, > > I'm playing around with the osglight demo and found that if "geode" in > "createRoom" is commented out, then the scene's center becomes light > zero's position. How can I move the scene (mouse trackball move) with > respect to the scene's center without having the scene being offsetted > by the light's position? In other words, I'm trying to have a global > light which I can move without affecting the scene's position and > which is independent from the viewer. > > Thanks, > > Martin > _______________________________________________ > osg-users mailing list > [email protected] > http://openscenegraph.net/mailman/listinfo/osg-users > http://www.openscenegraph.org/ > > _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
