Hi John, If you are using QT3 then have a look at the new osgsimpleviewQT3 example in CVS, this might simplify a least a bit of the code.
In the case of camera manipulator it'll use the getInverseMatrix() to get the view matrix to set the camera's view matrix. For objects in the scene you'll be using the getMatrix() directly to move the obejcts around. Robert. On 11/6/06, Whitfield, John M. (SED/TMI) <[EMAIL PROTECTED]> wrote:
I have used the matrixManipulator to move objects around in the scenegraph, but I am having trouble coding up this camera class. It could be because I am using the old qt3 with some old gnu code to build the interface. It seems like some code I've seen on the net suggests using producer, is this the way to go even though the gnu stuff never used it, or is there something I am missing about how to build that class. Thanks, -John -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield Sent: Thursday, November 02, 2006 4:06 AM To: osg users Subject: Re: [osg-users] How to avoid zooming through objects Hi John, The camera manipulators are derived from osgGA::MatrixManipulator, there isn't a base class CameraManipulator. The normal of use of a subclass from MatrixManipulator to implement camera manipulator functionality, but you can also use it to control transforms in the scene graph too. Robert. On 11/2/06, Whitfield, John M. (SED/TMI) <[EMAIL PROTECTED]> wrote: > Thanks. The copy of openscenegraph that I am using doesn't seem to have > a cameramanipulator header file I can hack on, and I don't see one on > the website. Anybody know where to find one? > > Thanks, > > -John > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Robert > Osfield > Sent: Wednesday, November 01, 2006 2:20 PM > To: osg users > Subject: Re: [osg-users] How to avoid zooming through objects > > Hi John, > > Just roll your own camera manipulator, the ones provide in osgGA don't > attempt to solve all camera manipulator usage styles. > > Robert. > > On 11/1/06, Whitfield, John M. (SED/TMI) > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I have built a sphere in osg, and I would like for the camera not to > zoom > > through the inside of the sphere, but only zoom closer to the surface. > > Anyone know how to accomplish this? > > > > > > > > -John Whitfield > > > > > > _______________________________________________ > > 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/ _______________________________________________ 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/
