> Date:         Sun, 17 Feb 2002 03:08:40 -0700
> From: Raj Vaidya <[EMAIL PROTECTED]>
>
> I am trying to set up multiple views ( left, right, top, etc. ) of
> my scene. Each of these views has a View, Canvas3D, and a *ViewPlatform*
> ( necessary, right ? ) object.

True, unless you're trying to set up a VR portal or cave where you're rendering
from a single point of view and displaying left, right, and top views on
separate screens.  If you're rendering from multiple points of view you'll need
a ViewPlatform for each view direction.

> The question is how to get each of
> the views to have an orbit behavior and then how to get each of
> the orbitbehaviors to respond sensibly to mouse motions in other canvases.
> Firstly, from what I understand, each ViewPlatform in each "view" will
> have to necessarily have an orbitbehavior of its own, am I right ?

True, OrbitBehavior is only designed to update a single ViewingPlatform,
independently from any others that might exist.  If you need to maintain the
constraint that all views are always in fixed relationships to the others, you
need to somehow propagate the transformation changes to the other platforms.

> So what's the solution ? Wire all the orbitbehaviors with each other
> using postId mechanics or some such stuff ?
>
> Also, I am wondering if it would be convenient to have something
> like an "OrbitBehaviorCallback" similar to the MouseBehaviorCallback
> and PickingCallback to broadcast transformChanged events.

The latter sounds like a good solution to your situation.  Your best bet may be
to take the source code to OrbitBehavior and implement just such a callback in
its integrateTransforms() method.  A Request For Enhancement (RFE) probably
won't make it into the Java 3D 1.3 FCS.

-- Mark Hood

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