Given a simple scene with an OrbitBehavior attached to the
viewplatform, I want to be able to open a new frame and put a clone of
the scene in there. So I create a new SimpleUniverse, copy the
Transform3d of the original ViewPlatform into the new
ViewPlatformTransform and copy the rotation center the same way
between the orbit behaviors.
If I click in the new canvas (and trigger the orbit behavior) and the
original scene was translated before cloning, you can see the scene in
the new canvas jump to another position (rotation and zoom are
preserved).
You see, I want methods to get and set the translational state of the
OrbitBehavior. But if it's possible to initialize the behavior only
from the target transform, I think this should be done within the
resetViewPosition method.

Regards,

Ingo

>The OrbitBehavior does take into account any translation changes to
>the view Transform, the view will be positioned at the translated
>point but will always point to the rotation center.
>
>Java 3D Fly Through uses this functionality for the 'Show All'
>command.
>
>How does this differ from your requirements ?
>
>As a side note, the resetViewPosition method should not be made
>public as that would require user code to have knowledge about which
>ViewPlatformBehavior is currently driving the view.
>
>Rgds
>
>Paul
>
>----------------------------------------------------------
>Paul Byrne Email : [EMAIL PROTECTED] Sun Microsystems Phone : (650)
>786 9926 Visualization Software Group Fax : (650) 786 5852
>----------------------------------------------------------
>
>
>
>>I had a look at the source of the OrbitBehavior class that is coming
>>with Java 3D 1.2.1_01. It has a private method called
>>resetViewPosition(), which is called when the behavior is attached
>>to the Viewplatform or when the target transform is changed. It
>>changes the internal state of the OrbitBehavior, so that it works
>>perfectly when you change the rotation and zoom of the target
>>transfrom, but it does not take translations into account!!!  I know
>>it's no simple mathematics, but is it not possible to reset the
>>translation as well?  I wished the guy at SUN, who is responsible
>>for this class, could implement this.
>>
>>Regards,
>>
>>Ingo

===========================================================================
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