Hi Ewan,

   Bug 4633578 -
   OrbitBehavior did not reset itself when setting view platform transform

is submitted for this.

This and the other one 4485481 -
OrbitBehavior resets position after ViewPlatform is translated

is fixed in the next v1.3 beta2 release.

In the meantime you can modify the OrbitBehavior utility
source code and

(1) Add the following lines

        xtrans = 0;
        ytrans = 0;

    in resetViewPosition()

(2) Change
     transVector.x = rotationCenter.x + xtrans;
     transVector.y = rotationCenter.y + ytrans;

    to

     transVector.x = rotationCenter.x + xtrans + centerToView.x;
     transVector.y = rotationCenter.y + ytrans + centerToView.y;

   in integrateTransforms()

Thanks for your bug report.

- Kelvin
----------------------
Java 3D Team
Sun Microsystems Inc.
>Delivered-To: [EMAIL PROTECTED]
>MIME-Version: 1.0
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
>Date: Sat, 2 Feb 2002 15:12:56 -0000
>From: Ewan Borland <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Orbit behaviour problem
>To: [EMAIL PROTECTED]
>
>Hi,
>
>I'm using the orbit behaviour to move around and I've found it easy to get
>"lost" and so have included a home button which restores the nominal view
>transform. However when I begin interacting again the translation from the
>orbit behaviour jumps back to it's previous state.
>
>I've attached a small applet to demonstrate. If you rotate or zoom and then
>press the home button the nominal transform is restored and you can then
>rotate or zoom etc. normally. But if you translate the cube then press home
>any form of interaction causes the cube to jump back to it's previous
>translation but the rotation and zoom components are those for the nominal
>transform.
>
>Sorry, I've just read over this and it's not very clear: Try translating the
>cube until half of it is outside of the canvas then press home. Now try and
>rotate the cube and watch it jump.
>
>I'm using jdk1.4.0-beta3 and  j3d1.3 beta1 on Windows 98 SE. I'm not sure if
>this is a bug or if I'm just going about it the wrong way but any comments
>wil be appreciated, thanks
>
>Ewan
>
>
>----------------------------------------------------------------------------
>
>    Ewan Borland
>
>    Computing Science
>    University of Glasgow
>
>    e-mail : [EMAIL PROTECTED]
>                [EMAIL PROTECTED]
>
>----------------------------------------------------------------------------
>
>

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