Hi Dan,

The getMatrix/setByMatrix methods in the CamaraManipulators might be
convinient and sufficient for switching between some manipulators but there
are too many settings in some of the manipulators to be able to set it
purely from a 4x4 matrix so the manipulator has to make a guess at what
might be intended.  For instance a manipulator that uses a look distance,
centre of rotation and look vector direction isn't able to compute the look
distance from a 4x4 matrix, there simply is too my unknowns for the
constraints available.  So it's not a bug but a mathematical limitation.

Robert.

On 5 February 2015 at 12:00, Dan Shebounin <[email protected]>
wrote:

> I have discovered, that when working with manipulators, it is not enough
> to call getMatrix() and setByMatrix(), when switching between manipulators,
> say, with KeySwitchManipulator.
>
> You can try it: run osgsimulation example and try to switch between
> manipulators with '1' and '2' keys. The camera become crazy.
>
> I do not know the source code well, but suppose, that some mean should be
> created, that notifies manipulator, when it is switched in and out.
>
> Cheers,
> Dan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=62609#62609
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to