Hi Murat, attached you'll find an "OrbitBehavior" (draft) based on the source of the package com.sun.j3d.utils.behaviors.vp which can be used (only) with the "core javax.media.j3d.ViewPlatform class". This OrbitBehavior consists of the abstract ViewAWTBehavior.class and ViewOrbitBehavior.class. The TransformGroup of your ViewPlatform has to be set to the OrbitBehavior by myViewOrbitBehavior.setViewTransformGroup(transformgroup). The constructors and all other methods are unchanged. Good luck!
August Lammersdorf ----- Original Message ----- From: "A. Murat Tanyer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 07, 2002 4:50 PM Subject: [JAVA3D] OrbitBehavior without utility class > Hi all; > > I am trying to add an 'OrbitBehavior' to my scene. However, I am getting the below > error message. > > I am using the 'core ViewPlatform class': My scene's centroid is at x,y,z in the > space. What I am doing is creating my viewplatform and moving it to point near to > x,y,z so that I can view the object. That means I am using the "core > javax.media.j3d.ViewPlatform class" instead of the > "com.sun.j3d.utils.universe.ViewingPlatform utility" which allows me > 'OrbitBehavior'. > > Is there a way adding the OrbitBehavior to my scene without using the > com.sun.j3d.utils.universe.ViewingPlatform utility but using the core > javax.media.j3d.ViewPlatform class. > > If there is no way, how can I move my viewplatform to the specified point with the > specified rotation angle so that I can view my object? > > Can anybody help me about this problem? > > I also use Java3D 1.3 Beta. > > Thanks > Murat >
ViewAWTBehavior.java
Description: Binary data
ViewOrbitBehavior.java
Description: Binary data
