Re: [osg-users] Camera control and view matrix

2008-09-18 Thread Renan Mendes
Hi, Robert. You've said: As for examples of manage the view matrix, there should be examples in the archives, but in the end it all boils down to not using a CameraManipulator and instead calling on each frame: viewer.getCamera()-setViewMatrix(viewMatrix); How do I stop using the default

Re: [osg-users] Camera control and view matrix

2008-09-18 Thread Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC
Of Renan Mendes Sent: Thursday, September 18, 2008 11:39 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Camera control and view matrix Hi, Robert. You've said: As for examples of manage the view matrix, there should be examples in the archives, but in the end it all boils down to not using

Re: [osg-users] Camera control and view matrix

2008-09-18 Thread Robert Osfield
Hi Renan, The osgViewer::Viewer by default doesn't have any camera manipulators attached, but... if you call run without attaching a camera manipultor then it'll add a TrackballManipulator as a fallback to make the view usable. If you are controlling the view matrix from your own frame loop then

Re: [osg-users] Camera control and view matrix

2008-09-18 Thread Robert Osfield
Hi Renan, Thanks for the link, I'll update it tomorrow, unless some kindly soul gets to it before me :-) Robert. On Thu, Sep 18, 2008 at 5:36 PM, Renan Mendes [EMAIL PROTECTED] wrote: Robert, The page I'm talking about that still references osg::Producer is

Re: [osg-users] Camera control and view matrix

2008-09-18 Thread Paul Martz
] [mailto:[EMAIL PROTECTED] On Behalf Of Renan Mendes Sent: Thursday, September 18, 2008 11:39 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Camera control and view matrix Hi, Robert. You've said: As for examples of manage the view matrix, there should be examples in the archives, but in the end

Re: [osg-users] Camera control and view matrix

2008-09-17 Thread Tomlinson, Gordon
Search the mailing lists, there are lots of references to this in previous posts.. some of the examples also exercise these things Paul and Bobs user guides Gordon __ Gordon Tomlinson Product Manager 3D Email : gtomlinson @

Re: [osg-users] Camera control and view matrix

2008-09-17 Thread Brian R Hill
Here's what I do using euler angles (_camAng) and position (_camPos). osg::Quat quat(_camAng[0],osg::X_AXIS,_camAng[1],osg::Y_AXIS,_camAng [2],osg::Z_AXIS); osg::Matrix viewMat = osg::Matrix::rotate(quat) * osg::Matrix::translate (_camPos);

Re: [osg-users] Camera control and view matrix

2008-09-17 Thread Robert Osfield
Hi Renan, On Wed, Sep 17, 2008 at 3:30 PM, Renan Mendes [EMAIL PROTECTED] wrote: I need some references on camera control and view matrices. The tutorial in OSG's website is outdated, for it still makes use of osg::Producer. Can anyone send me a few suggestions? Which pages in particular

Re: [osg-users] Camera control and view matrix

2008-09-17 Thread Tomlinson, Gordon
for survival - Master Tambo Tetsura -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian R Hill Sent: Wednesday, September 17, 2008 10:55 AM To: OpenSceneGraph Users Subject: Re: [osg-users] Camera control and view matrix Here's what I do using euler

Re: [osg-users] Camera control and view matrix

2008-09-17 Thread Paul Martz
Or just writing your own CameraManipulator, as per src/osgGA/TrackballManipulator.cpp etc. Yes, the TrackballManipulator code is a good reference for this stuff. The original post is pretty vague; perhaps the original poster would benefit from some basic OpenGL information regarding the