I have been playing some more and I did a little test program that
illustrates one way of moving the camera around to different places in the
scene graph and keeping both the behavior associated with moving it and
the overlays.

It is not possible, to the best of my knowledge, to use the
ViewingPlatform class (and thus the OrbitBehavior) and be able to move the
camera in the scene graph without losing access to the behavior. When you
call ViewingPlatform.setViewPlatform() the ViewPlatform does change but
the TransformGroup that OrbitBehavior is operating on stays attached to
the original position.

This program does not use multiple ViewPlatforms, rather it detaches and
reattaches a BranchGroup to move both the TransformGroup and the
ViewPlatform. Instead of the OrbitBehavior it is using the
NavigationHandler class from the j3d cvs which has the advantage of being
animated.

The program is on the web at:
   http://odin.himinbi.org/j3d-overlay/#view-platform-test

There is an initial setup screen. The scene is a set of spheres that
spiral around in a sphere, changing hue as they go around and brightness
as they descend. Settings like the number of spheres, the number of camera
mounts and colors can be changed.

As well as illustrating the NavigationHandler it also shows how to do
overlays with more than one color and font style using the AttributedText
class.

There is no error checking on the fields where you enter numbers so
entering things that aren't numbers will cause it to crash.

Will

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