Re: [osg-users] changing the up direction of the SphericalManiuplator

2010-10-21 Thread J.P. Delport
Hi, On 20/10/10 21:55, Cory Riddell wrote: Tim Thanks for the reassurance and the explanation. My code is working well now and I'm very happy with it. I hardly had to change anything, so that makes me think I got it right. I do kind of wish I could always have my orbits be around the center

Re: [osg-users] changing the up direction of the SphericalManiuplator

2010-10-21 Thread Tom Pearce
I haven't tried it, but wouldn't changing the order of multiplication in the get(Inverse)Matrix methods do the trick: return osg::Matrixd::translate(osg::Vec3d(0.0, 0.0, m_distance))* osg::Matrixd::translate(m_center)* osg::Matrixd::rotate(M_PI_2-m_elevation, 1.0, 0.0,

Re: [osg-users] changing the up direction of the SphericalManiuplator

2010-10-20 Thread Tim Moore
On Mon, Oct 18, 2010 at 10:23 PM, Cory Riddell c...@codeware.com wrote: I've been plowing through this and I can almost get what I need, I just don't entirely understand a couple of things. Is it safe to think of the view matrix as the camera position and orientation? By doing so, I think I

Re: [osg-users] changing the up direction of the SphericalManiuplator

2010-10-20 Thread Cory Riddell
Tim Thanks for the reassurance and the explanation. My code is working well now and I'm very happy with it. I hardly had to change anything, so that makes me think I got it right. I do kind of wish I could always have my orbits be around the center of my

Re: [osg-users] changing the up direction of the SphericalManiuplator

2010-10-18 Thread Cory Riddell
I've been plowing through this and I can almost get what I need, I just don't entirely understand a couple of things. Is it safe to think of the view matrix as the camera position and orientation? By doing so, I think I understand SphericalManipulator::getMatrix()