Re: [osg-users] CAD style rotation

2009-04-26 Thread Richard Baron Penman
3 - I haven't implemented the setByMatrix function, because I don't need it. But this should be done. Regards, Moji the Great Has this been implemented yet? But I was wondering if it would be better as an extention to TrackBallManipulator? The spherical mode is really just a set of

Re: [osg-users] CAD style rotation

2009-04-22 Thread Paul Martz
Yes, I've done this as well, pretty easy to write, just allows you to position the camera in altitude and azimuth while maintaining an up vector. I'd say it's more common in sim apps than CAD apps, though. I see someone else has posted code for this. Paul Martz Skew Matrix Software LLC

Re: [osg-users] CAD style rotation

2009-04-22 Thread Cory Riddell
I tried compiling this into the released 2.8 code and it complained about _horizontalLock and _verticalLock not being defined. Which source tree were you compiling against? Cory Martin Beckett wrote: I cleaned up the code a little to fit osg naming. Removed the Visual Studio

Re: [osg-users] CAD style rotation

2009-04-22 Thread Martin Beckett
Should be bool _horizontalLock; bool _verticalLock; at the bottom of the SphericalManipulator definition. Sorry - I changed the name in the .h but the zip had the no-h version. -- Read this topic online here:

Re: [osg-users] CAD style rotation

2009-04-22 Thread Cory Riddell
Mojtaba and Martin, I like this manipulator and I think it is worthy of inclusion in OSG. Do you plan on submitting it to the submissions list? Cory Martin Beckett wrote: Should be bool _horizontalLock; bool _verticalLock; at the bottom of the SphericalManipulator definition.

Re: [osg-users] CAD style rotation

2009-04-22 Thread Martin Beckett
It's Moji's code so he should probably be the one to submit it. There seems to be a few functions that aren't necessary (perhaps for some other code) which could be cleaned up. It would be nice if there was a method to set a rotation origin in the model - or is there some general way to do

Re: [osg-users] CAD style rotation

2009-04-22 Thread Mojtaba Fathi
, Martin Beckett m...@mgbeckett.com wrote: From: Martin Beckett m...@mgbeckett.com Subject: Re: [osg-users] CAD style rotation To: osg-users@lists.openscenegraph.org Date: Thursday, April 23, 2009, 12:18 AM It's Moji's code so he should probably be the one to submit it. There seems to be a few

Re: [osg-users] CAD style rotation

2009-04-22 Thread Martin Beckett
modjtabaf wrote: 1 - you have commented the body of zoomOn function, but it's declaration exits in the class. I was just playing with. ZoomOn is intended to zoom fullscreen on a selected node ? That would be useful. You can submit it by simply posting the files to the submission forum.

Re: [osg-users] CAD style rotation

2009-04-22 Thread Richard Baron Penman
thanks very much - that's just what I was after. Richard On Wed, Apr 22, 2009 at 6:37 PM, Mojtaba Fathi modjta...@yahoo.com wrote: Hi I have a developed a manipulator like the one you want. It has some extra code specialized for my needs. Let me clean extra codes and send it to you. Maybe