[osg-users] Synchronizing transforms between views in CompositeViewer

Steven Songiv citeop at gmail.com
Wed Dec 2 14:15:43 PST 2015


Hi,

I am making a multi-view editor application (ortho top, front ortho, user persp, and so forth) and trying to figure out how to synchronize different styled draggers per View in a CompositeViewer.

So, for example, I want to have 2D draggers in side views (e.g. XY dragger in top view) and 3D draggers in the perspective view (e.g. XYZ dragger).

Translating an object in one View should translate the selected object and dragger in the other Views of the composite dragger.

What is the proper way to handle this?

Originally I had one dragger placed in the shared scene data, but that gave me 3-directional draggers in the side views. My thought was to create draggers as children of their respective view's cameras and somehow synchronize their transforms during a callback. 

1. I'm not sure if this approach works. 2. I was unable to drag objects if I put the dragger as a child of a camera.


Thanks for your time
Steven

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








More information about the osg-users mailing list