Hi all,

I know it's no dedicated OSG-question I have but I'm looking for the easiest
OSG-solution, so perhaps you can forgive me..

And I think it's very simple question too - I'm just not into quaternions
I'm afraid..

I want to draw a cylinder between given points osg::Vec3 p1, p2. By default
an osg::Cylinder points to ( 0, 0, 1 ) and I want to rotate it using
osg::PositionAttitudeTransform::setAttitude( osg::Quaternion & );
The solution I'm using is based on 4x4 matrix-rotation and it's very
complicated and there have to be many conversions between matrices and
quaternions.

But what would be the most straightforward quaterion based solution?

thanks in advance

Frans
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to