the norm is to move the camera/view point and not the terrain ( the track ball is designed to look at a model rather then move around )
See motion models such as drive and fly ( in DriveManipulator.cpp and FlightManipulator ) Also see the tutorials' section http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials See Paul's quick start guide http://www.osgbooks.com/books/osg_qs.html __________________________________________________________ Gordon Tomlinson [EMAIL PROTECTED] IM: [EMAIL PROTECTED] www.vis-sim.com www.gordontomlinson.com __________________________________________________________ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Allen Sent: Thursday, November 20, 2008 6:45 PM To: osg-users@lists.openscenegraph.org Subject: [osg-users] Cameras & Non-Moving Terrain Hi Sukender, :-) Well, what I want is the ability to have the terrain to "appear" to remain "still" while I move the camera around on it. The glider example and the animate example are what I'm basing my research/work on and in both cases, when the "camera moves" it appears that the object I'm looking at is actually moving and not the camera. So, I must be able to "move" through the terrain like the TrackballManipulator allows but move the camera and leave the terrain "still." Is this any clearer? I've looked W the link you provided but I've NO clue as to how to use what you are suggesting. I'm too much a newbie to 3d Visualization - about 1.5 yrs worth - to understand what you're referring to. If you know of any example(s) that I could look @ and copy, that would be awesome!!! Do you know of or have any? Message: 5 Date: Thu, 20 Nov 2008 23:51:03 +0100 From: Sukender <[EMAIL PROTECTED]> Subject: Re: [osg-users] Cameras & a NON-Moving Terrain To: "OpenSceneGraph Users" <osg-users@lists.openscenegraph.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset=iso-8859-15 Hi Allen, Do you mean you want a subgraph to appear as if it was at an infinite distance, such as for skyboxes? If so, you can try to create your own transform that removes the translation. That costs 4 lines of code (See http://pvle.sourceforge.net/Doc/Html/MoveWithEyePointTransform_8h-source.htm l for an example). You may also create a transform that removes rotation if needed. Sincerely, Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Thu, 20 Nov 2008 23:45:27 +0100, Allen <[EMAIL PROTECTED]> a ?crit: > > Hi. Could someone tell me or point me in the direction of finding an > > example that illustrates how to move the camera in a scene but NOT make > > it appear that the terrain is moving? I want a perspective terrain w/in > > my scene and I want to move the camera through the scene but I DO NOT > > WANT it to appear that the "Earth" is moving when the user moves the > > mouse. I just can not figure this feat out. Can anyone help me? > > --Allen > > > > _______________________________________________ > > osg-users mailing list > > osg-users@lists.openscenegraph.org > > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org