[osg-users] "hooking" into the Trackballmanipulator transform

2018-05-08 Thread Andrew Cunningham
Hi, I need to "hook" into the TrackballManipulator to provide feedback to the user. As the user rotates the model, I want to get the matrix and extract Euler angles. I'm stuck at how to get notified when the when the view matrix changes. Should I derive a new class from TrackballManipulator ?

Re: [osg-users] "hooking" into the Trackballmanipulator transform

2018-05-08 Thread Julien Valentin
Hi Indeed derivation is the answer and overriding Code: virtual bool handle( const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& us ); should be sufficient Cheers loopy wrote: > Hi, > I need to "hook" into the TrackballManipulator to provide feedback to the > user. As the user

[osg-users] Trackball Manipulation Broken?

2018-05-08 Thread Erik Hensens
Hi everyone! My app allows manipulating the scene via the osgGA::TrackballManipulator. Without changing any of the app code, we upgraded from OSG 3.2.0.99 to 3.2.1.100 and now the trackball manipulation doesn't work. I don't know how to check whether or not this is a known bug so I figured I'd

Re: [osg-users] "hooking" into the Trackballmanipulator transform

2018-05-08 Thread Andrew Cunningham
Yup you are right, that works great! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=73570#73570 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Getting the combined matrix from a Node?

2018-05-08 Thread Sebastian Messerschmidt
Hi Marlin, you need to get the appropriate parent-node paths: osg::NodePathList parent_node_list = mat.getParentalNodePaths(); Now if you know the path you want to retrieve, you can call e.g.: node_path = parent_node_list[1]; osg::Matrix mat = osg::computeLocalToWorld(node_path); Also the

Re: [osg-users] Getting the combined matrix from a Node?

2018-05-08 Thread Robert Osfield
Hi Marlin, The Transform class and it's subclasses are designed to be used as part of scene graph, this allow Transform subclasses that are absolute (ignore transforms+camera matrices above them) or relative (multiple the inherited modelview matrix) to enable this in a generic way the Transform

Re: [osg-users] EXTERNAL: Re: Getting the combined matrix from a Node?

2018-05-08 Thread Rowley, Marlin R
Yes, I used this way. Thanks, -M Marlin Rowley Software Engineer, Staff [cid:image002.jpg@01D39374.DEC5A2E0] Missiles and Fire Control 972-603-1931 (office) 214-926-0622 (mobile) marlin.r.row...@lmco.com From: osg-users