Hello 3d list,
I have a simple scene that uses standard keyboard navigation. It works
just fine, except when I start the scence, if I lightly touch the up or
down arrow, all goes black. If I use the mouse first to rotate, or use
the right/left arrows, thereafter all is fine and the up/down arrows
work as expected
Here is the code I use to setup the kb navigation callbacks. Any
thoughts/known issues? Less frequently, using the right/left arrows as
soon as I start the scene puts the viewer behind the scene instead of in
front. That seems random though - can't repeat at-will.
tia for any ideas.
// keyboard
Vector3f translate = new Vector3f();
Transform3D t3d = new Transform3D();
TransformGroup viewPlatformTransform =
su.getViewingPlatform().getViewPlatformTransform();
translate.set(0.0f, 0.3f, 0.0f);
t3d.setTranslation(translate);
viewPlatformTransform.setTransform(t3d);
KeyNavigatorBehavior keyNavigatorBehavior = new
KeyNavigatorBehavior(viewPlatformTransform);
keyNavigatorBehavior.setSchedulingBounds(
new BoundingSphere(new Point3d(), 100.0));
branchGroup.addChild(keyNavigatorBehavior);
===========================================================================
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".