Hello List,
currently I'm conceptionally stuck with this problem:
I'm using a (modified to J3D 1.3 beta2) OrbitBehavior to look
at my scene.
I want to move my camera/view in response to a users click on
some visible object in the scene: the camera then shall smoothly
move to a new position, where the clicked scene object is in
focus, viewed from some predefined angle and a distance, that
shows just all of the object. AND the rotation center shall be
in the center of the clicked visible after the animation.
This seems to call for RotPosScaleTCBSplinePathInterpolator, or
may be the KBRotPosScaleSplinePathInterpolator or even the
linearly interpolating RotPosScalePathInterpolator combined with
an Alpha set up to have good Ramp value(s).
All 3 mentioned Interpolators have a single TransformGroup as
target, but conceptually I have
- one path for the 'camera' position, which may be complicated,
to avoid obstacles
- another path for the 'lookat' point, at the same time producing
the 'rotation center', this one a simple strait line from the
current 'look at' point to the targets center.
How would YOU do that?
any hint is very welcome, thanks in advance
Georg
___ ___
| + | |__ Georg Rehfeld Woltmanstr. 12 20097 Hamburg
|_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10
PS: I've not decided yet, what should happen, if the user
interacts while the animation is running, simply let
the animation override user actions for now if this
would complicate matters.
===========================================================================
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".