Hi,

I am using the osgManipulator draggers to move objects around my scene. I 
intend that when the R key is pressed a rotation dragger is used and when the T 
key is pressed a translation dragger is used. And if any other key is pressed 
then no draggers are used.

The manipulator example applies the draggers from the start and so doesnt face 
this problem.


What is a good way to arrange my scene nodes so that I can switch between drag 
modes? Originally I thought of using a switch node, but then only 1 
transformation at a time would be applied to the model (is that right?) and I 
want the transformations to be maintained across modes.

I could stack the manipulators on top of each other, but then their geometry 
(created with setupDefaultGeometry()) would overlap. (The API doesnt support 
disabling a dragger.)


My current design is:
- put the model behind a transform
- when switch mode apply current dragger matrix to the transform and then 
remove dragger
- insert new dragger before the transform

This seems very awkward so Im hoping there is a better way!

Thank you.
Julia

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to