> Date: Thu, 30 May 2002 11:14:49 +0100 > From: "A. Murat Tanyer" <[EMAIL PROTECTED]> > > I am trying to add an 'OrbitBehavior' to my scene. However, I am getting > the below error message. Has anybody got an idea what the problem is? > > I am not using SimpleUniverse, but using a VirtualUniverse with a Locale > attached to it.
You've fallen victim to an unfortunate and confusing naming convention between the Java 3D core and utility packages. You're using the core ViewPlatform class, but OrbitBehavior (and all subclasses of ViewPlatformBehavior) require that you use the ViewingPlatform utility class instead. IOW, you don't need to use SimpleUniverse with OrbitBehavior, but you do need to use the com.sun.j3d.utils.universe.ViewingPlatform utility instead of the core javax.media.j3d.ViewPlatform class. ViewingPlatform is basically an extension of BranchGroup that allows various things to be attached to it that the utility classes need. -- 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".