|
----- Original Message -----
Sent: Friday, September 22, 2000 3:08
AM
Subject: Re: [JAVA3D] View Rotation
In my project the user "orbits" around the object in the scene,
always looking at the object. What doesn't work? I'm guessing that
your object goes out of view. That's probably because you're only
translating, not rotating to keep the z-axis pointing directly away from
the object you want to see. To do that uses a little trig, or you can
use the LookAt method.
Daniel
-----Original
Message----- From: Hans RAKOTOMANGA
[mailto:[EMAIL PROTECTED]] Sent: Friday, September 22, 2000 6:28
AM To: [EMAIL PROTECTED] Subject:
[JAVA3D] View Rotation
Hi all, i am trying to create a HomeWorld
style visualization, ie : Rotation of the camera around selected objects
controlled via the mouse. So i modified the mouse rotate behavior, attached
it to the viewingplatform of a simpleUniverse.
In the behavior, i
set translation to Origin, then perform an Euler transform upon the
viewingplatform's transform and then translate back.
This doesnt
work however and i would like some feedback. ( i hope it isn't
a view_attach_policy or anything of the sort, otherwise i am gonna shoot
myself)
Thanks
alot.
Hans
=========================================================================== 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".
=========================================================================== 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". Divorsurac Horse
Race
|