On Fri, 10 May 2002 14:08:05 +0200, Tobias Bergman <[EMAIL PROTECTED]> wrote:

>Can I rotate a View like in 3DStudio. I develop a program that will show
>a model from three angles: top, front & left. I've tried to rotate the
>view by change the TransformGroup above the ViewPlatform. When I do that
>the view transform like a 3D game, like walking in the 3d world. Can I
>set the point to rotate around? I thought if I set such point in the
>middle of the model and then rotate the view.
>
>Can Java3D transform a View the way I want?
>
>
>
>Best regards Tobias Bergman
>
>

The OrbitBehavior can do that, you can also set a rotation center. This actually 
rotates the view point, so if you set a fixed light, when you rotate, in some angle, 
you will the model is dark.

To solve the problem, it's better to rotate only the model, not the light, not the 
view point. To rotate around a center, first move the model from the center back to 
orginal coordinate, then do rotation and then move it back to the center.

hope it helps.

Huaicai

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