Hi René,
The re-factored manipulators do make the implementation simpler. I made some subclasses for customization ( and a more model/view like approach ). There are only a few small remarks regarding the manipulators. The line segment intersectors don't intersect with the cylinders when viewed from the side. I used a polytope intersector instead and had to reimplement the entire handle function in the subclass.
Interesting how different people run into the same problems but find different solutions. We also wanted the rotation manipulators to be able to be picked from the side of the cylinders, and our solution was to make the derived class generate an invisible cylinder that had a larger thickness (just for picking). But this caused the problem that the rotation code assumes that the picking of the cylinder will happen from the top or bottom, and when it happens on the side sometimes the rotation becomes unpredictable (dragging the mouse by 1 pixel makes the object rotate more than 360 degrees sometimes).
We worked around this by capping the maximum rotation speed, but it's not ideal. But then again, using a polytope intersector would likely be too slow for us. So I think we'll keep our present solution.
My point is that our solution was probably also easier to adapt to the refactoring of the manipulators that Robert did. I just had to change 3 lines of code and we were up and running on 2.9.7.
> There are also a lot of notifications:
osgManipulator::computeNodePathToRoot(,) taking first parent path, ignoring others. is this because the scene is visualized in multiple viewers?
I think it's probably because of the way the old manipulator architecture had to have the Dragger (or is it Selection, it's been too long since I did this) as parent of the geometry you wanted to manipulate, and now it's not necessary. I'm not sure though.
J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org