Hi Michele, On Fri, Feb 15, 2008 at 11:20 AM, Michele Bosi <[EMAIL PROTECTED]> wrote: > Hello to all (and welcome back Robert!), > I have 2 questions about the Trackball manipuator > > 1- In my application I have multiple views each with a model in it > (and a trackball manipulator) and when I select a view I want all the > other views to stop from rotating if they are. Is there a way to > programmatically stop the Trackball manipulator's automatic rotation?
There isn't a way right now. The easiest way to do it would probably be to add a virtual method into MatrixManipulator to enable the toggling on/off of any animation. Feel free to add this and send me the changes. > 2- I would like to see two models on the very same view "one over the > other" even if they are intersecting each other, in order to compare > their shapes. The problem is that I also need to rotate them > independently, which means that I cannot simply manipulate the camera > but I need to "really" rotate each object independently one at a time. > Can I accomplish this somehow using the TrackballManipulator? You could do this by having two Views that use the same viewport settings so they overlap, but turn off the colour buffer clear for the second view via view.getCamera()->setClearMask(), you'll also need to the Camera's RenderOrder to make sure the one with clear off is drawn second. One could possible attach the same camera manipulator to each view and turn of the event handling for one of the views. Alternatively on each frame you could just sync the view matrix on the second manipulator with the setting from the first view. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

