Re: [osg-users] Question about switching between MatrixManipulator

2009-10-12 Thread Shiina Ringo
Hi, JP

Thanks for your advice. I have tried setHome() befor, and this funtion just set 
the default view position for the corresponding MatrixManipulator. Here my 
problem is that: when I hit the button to switch the 2 MatrixManipulator, if I 
switch the trackball to the manipulator that I defined my myself, and the view 
position is no problem; while if I switch the manipulator that I defined myself 
to the trackball, the view position is not the position like the position when 
the application initialed(in other word: the defalut view position of trackball 
manipulator), here if I hit the spacebar(the default key to let the view point 
to Home position), and the view position will come back to the "Home"position, 
which defined by the "setHome()".

All in all, my question is: when I switching the other Manipulator that I 
defined myself to trackball, How to let the view point automatically come back 
to the default position ( the position is like the application initiated 
position)?

Any help would be appreciated.

Thank you very much!

Cheers,
Shiina

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18197#18197





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Question about switching between MatrixManipulator

2009-10-11 Thread J.P. Delport

Hi,

have you tried the home() and setHome() functions?

jp

Shiina Ringo wrote:

Hi,

Here just a quetion confused me:

I have a KeySwitchMatrixManipulator , which served as a swithcer between 2 MatrixManipulator : a default Trackball and a MatrixManipulator that I defined(bounding to a object) . 
The problem is : when I hit the button to switch the above 
MatrixManipulator , especially when I switch the MatrixManipulator that I defined to the Trackball MatrixManipulator  , the view point cannot come back to the default position when the application initiated , and I have to hit the spacebar in order to let the view back to the default positon.

In all , Is there a  method that could let the view point came back to its 
default position when using the Trackball MatrixManipulator?

Could anyone give me some advice about this problem?

Thank you very much!

Cheers,
Shiina

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18134#18134





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.


This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Question about switching between MatrixManipulator

2009-10-09 Thread Shiina Ringo
Hi,

Here just a quetion confused me:

I have a KeySwitchMatrixManipulator , which served as a swithcer between 2 
MatrixManipulator : a default Trackball and a MatrixManipulator that I 
defined(bounding to a object) . 
The problem is : when I hit the button to switch the above 
MatrixManipulator , especially when I switch the MatrixManipulator that I 
defined to the Trackball MatrixManipulator  , the view point cannot come back 
to the default position when the application initiated , and I have to hit the 
spacebar in order to let the view back to the default positon.
In all , Is there a  method that could let the view point came back to its 
default position when using the Trackball MatrixManipulator?

Could anyone give me some advice about this problem?

Thank you very much!

Cheers,
Shiina

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=18134#18134





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org