Re: [osg-users] OSG RotateToPoint

2012-04-30 Thread Robert Osfield
Hi Dan,

Unless you know Java3D RotateToPoint functionality I think it'll be
hard to guess exactly what it does.  I don't know Java3D so can't
really help specifically, you'll need to explain more specially what
you are after in non Java3D specific terms.

Also worth mentioning is whether you are moving objects in the scene
to a particular position in the world, or whether you are moving your
main camera to that location.

Robert.


On 27 April 2012 18:46, dan marshal dash...@gmail.com wrote:
 Hi,

 I am porting a java3d app to OSG and have to implement RotateToPoint.

 My model is an airplane and I have its location and the point I want to 
 rotate to.  Is there an OSG function similar to RotateToPoint?  Have you seen 
 a good example of this implementation?

 Thank you!

 Cheers,

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=47357#47357





 ___
 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] OSG RotateToPoint

2012-04-27 Thread dan marshal
Hi,

I am porting a java3d app to OSG and have to implement RotateToPoint.

My model is an airplane and I have its location and the point I want to rotate 
to.  Is there an OSG function similar to RotateToPoint?  Have you seen a good 
example of this implementation?

Thank you!

Cheers,

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=47357#47357





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG RotateToPoint

2012-04-27 Thread Jason Daly

On 04/27/2012 01:46 PM, dan marshal wrote:

Hi,

I am porting a java3d app to OSG and have to implement RotateToPoint.

My model is an airplane and I have its location and the point I want to rotate 
to.  Is there an OSG function similar to RotateToPoint?  Have you seen a good 
example of this implementation?


I'm not entirely sure what you're trying to accomplish, but you might 
want to take a look at the makeLookAt method in osg::Matrix.


If you're trying to rotate the plane to aim it at a particular point in 
space, that should do it for you.  You can use the resulting osg::Matrix 
in an osg::MatrixTransform node.


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org