> Date:         Thu, 13 Jun 2002 16:00:03 -0700
> From: Kelvin Chung <[EMAIL PROTECTED]>
> >
> >Date: Thu, 13 Jun 2002 21:50:22 +0200
> >From: portsacero <[EMAIL PROTECTED]>
> >Subject: Re: [JAVA3D] com.sun.....OrbitBehavior
> >
> >Have I to set manually the viewer??
> >Im trying to use without SimpleUniverse, is that possible?
> >
> >ViewingPlatform not has a setViewer(Viewer) method!
>
> Attach is an example without using SimpleUniverse.

If the original poster wants to use OrbitBehavior, then ViewingPlatform has to
be used, which the attached example doesn't.  All subclasses of
ViewPlatformBehavior use the ViewingPlatform to retrieve the TransformGroup
containing the view transform.  A ViewPlatformBehavior is made live by calling
the setViewPlatformBehavior() method of ViewingPlatform.

I suggest trying the version of OrbitBehavior that August Lammersdorf posted to
this list on June 10 (ViewOrbitBehavior) -- it doesn't need a ViewingPlatform,
just a reference to the TransformGroup to be modified.

I think it *ought* to be possible to use a ViewPlatformBehavior and a
ViewingPlatform without having to buy into the Viewer, SimpleUniverse, or
ConfiguredUniverse utilities.  There is, after all, a a public method
setViewPlatform() in the ViewingPlatform utility class that can be called with
a reference to a core Java 3D ViewPlatform class instance, so *in theory* a
core Java 3D View instance could be attached to that ViewPlatform with its
attachViewPlatform() method.  The only consequence of this that I can see is
that setNominalViewingTransform() would not have access to a Viewer from which
to get the field of view, so it would assume PI/4.

The problem is that there appears to be a bug with
ViewingPlatform.setViewPlatform() -- it never attaches the ViewPlatform to a
TransformGroup.  I'll investigate this further and generate a bug report if
appropriate.

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