Hello all,

   I have a question about coordinate conversion. In my program, I have
transformed the Shape3D from local system to Virtual World space, then I add
Mouse Behaviors,such as MouseRotate,MouseZoom,MouseTranslate to it. The
scenegraph is like this:

    objRoot
      |
     TG1--------MouseRotate,MouseZoom,MouseTranslate
      |
     TG2
      |
     Shape3D

   I also add KeyNavigator Behavior to the viewplatform.

   For example,when I use MouseBehavior to rotate the Shape3D,and then I use
mouse to pick one point in the scene, I want to get its local system's real
physical coordinate values,say (1002,234,78). How to do that? if invert the
getLocaltoVWorld will help? I used the Picking Utiity in the Java3D
1.2.1Beta,but it seems that I did not get the right result.How do I convert
the coordinates correctly taking into account of the MouseBehaviors(and
KeyNavigatorBehaviors)(no matter how the user rotate,zoom,translate the
scene)?

   Could you write some sample code about my sceneGraph above/some
suggestions on how to solve this problem?

     Thanks a lot!

David

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to