OrbitBehavior


Java 3D™ Forum. Thread: OrbitBehavior for JCanvas3D and VirtualUniverse available.

October 19, 2007


OrbitBehaviorInterim provides the mouse navigation capabilities of OrbitBehavior for a standard VirtualUniverse inclusive SimpleUniverse (but not for ConfiguredUniverse) and for any AWT Component inclusive Canvas3D and JCanvas3D.

This implementation might serve as an interim version until a Java 3D core utility is available. Redistribution and use are permitted according to the standard Java 3D core utility copyright notice.



Navigation in Parallel and Perspective Projection Mode

Since Version 2.0 navigation in parallel projection mode and clipping distances update are available.


Image


Version 2.1 - 2007/10/19

  • OrbitBehaviorInterim behaves now as a single channel for synchronized manual navigation and programmed viewpoint setting. All viewing related properties which OrbitBehaviorInterim is operating on should be set only on its instance to avoid any varying state. OrbitBehaviorInterim no longer supports any changes of the TransformGroup's transform component.

Version 2.0 - 2007/10/14

  • Navigation in parallel projection mode
  • Clipping distances update

OrbitBehaviorInterim2.1.zip includes a jar, apidoc, sources, and license. (138 KB) [download]

Sample Programs

JCanvas3D Navigation 2 is built on a standard VirtualUniverse, renders into a JCanvas3D, provides navigation in parallel and perspective projection mode by OrbitBehaviorInterim 2.1 and a (simple) viewpoint implementation as inner classes (VantagePoint and VantagePointBehavior), and supports rotation center picking by a double clicked left mouse button based on the utility PickCanvas.

JCanvas3DNavigation2.1.zip includes the source code. [download]

SimpleUniverse Navigation 2 is built on a SimpleUniverse, renders into a Canvas3D, provides navigation in parallel and perspective projection mode by OrbitBehaviorInterim 2.1 and a (simple) viewpoint implementation as inner classes (VantagePoint and VantagePointBehavior), and supports rotation center picking by a double clicked left mouse button based on the utility PickCanvas.

SimpleUniverseNavigation2.0.zip includes the source code. [download]



Navigation in Perspective Projection Mode

Image

Version 1.1 - 2007/06/26

  • Setting the rotation center includes the option to move the view to this point
  • The view can be moved to the current rotation center
  • Besides the 'home' transform a 'home' rotation center is implemented as well
  • Going home includes the option to set the current rotaton center to the 'home' rotation center

OrbitBehaviorInterim1.1.zip includes a jar, apidoc, sources, and license. (96 KB) [download]

The sample program JCanvas3D Navigation is built on a standard VirtualUniverse, renders into a JCanvas3D, provides navigation by OrbitBehaviorInterim 1.1, and allows picking for rotation center by a double clicked left mouse button based on the utility PickCanvas.

JCanvas3DNavigation1.1.zip includes the source code. (5 KB) [download]

(J)Applet samples using OrbitBehaviorInterim 1.1.

Type Type Name Code
Applet Canvas3D Canvas3DNavigation Applet [download]
Applet JCanvas3D JCanvas3DNavigation Applet [download]
JApplet Canvas3D Canvas3DNavigation JApplet [download]
JApplet JCanvas3D JCanvas3DNavigation JApplet [download]


Java 3D Forum. Thread: OrbitBehavior.setRotationCenter.

February 7, 2007


Image


OrbitBehaviorTest.zip (11 KB) [download]