Martin, I've been playing with your code a little bit and I have a question.
I can see how constraining rotations around a particular axis is useful, but is it still a trackball at that point? Are trackballs sometimes constrained like this? Thanks, Cory > I was playing with modjtabaf's spherical manipulator and thought a few > features would be useful in Trackball. > > This version can lock the rotation of view around the X,Y or Z (model) axis. > Mode can be set directly or with modkeys on the mouse movement. > The modkeys can be user selected and disabled > > zoom function centres the rotation on a given node and zooms to fill the > screen with the node. Not so sure about this one - it requires storing the > original node inside TrackBall so it can be reset. Is there a way of doing > this by overloading setHomePosition() ? > > (changes are against 2.9.4) > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
