> Date: Tue, 19 Nov 2002 13:46:56 -0500 > From: Mojtaba <[EMAIL PROTECTED]> > > We recently got our Java3D applications to work on SGI InfiniteReality3 > system and I just thought it may be useful for others to know some of > the things we had to do.
Congratulations! Nice to know that other folks are having success with setting up CAVEs with Java 3D. > 1-Attach head view in Java3D to tracker position in CAVE: this involves > writing the JNI interface to TrackD, writing an InputDevice > implementation and giving it to the PhysicalEnvironment as a Sensor and > declaring it as a head sensor (ask if you need to see the Java or C > code). This allowed Java3D to draw the correct perspective depending on > where the user's head is in the CAVE. We'll also soon be distributing a com.sun.j3d.input package which includes a Trackd InputDevice implementation, as well as implementations for the Logitech ultrasonic trackers, joystick gameport, and generic mouse support. Currently the package builds only on Solaris, but should be fairly simple to build on SGI. The Trackd implementation should also be portable to Windows (currently it builds but has problems loading the trackd DLL from the JNI layer). Let me know if you're interested in colloborating or merging our efforts. > 3- working out the small details! A small detail that gave us some > problems was matching screen resolution to the actual screen used (for > example we had 3 screens but we wanted to display on only one screen not > knowing that Java3D draws for the entire screen space). Sounds like you may have gotten your graphics configuration from a single screen and created a single window to cover all the physical screens. You should get a graphics config from each physical screen device and create separate Canvas3D instances for each one -- but you probably figured that out already. > Another small thing to get the stereo working properly is to include > -Dj3d.stereo=PREFERRED which wasn't necessary for us on the PC. That's interesting... what PC graphics board are you using that gives you stereo pixel formats by default? > The system isn't perfect but is impressive given the amount of effort it took > to go from PC to ONYX machines. Using Java3D was a huge advantage with > regards to this. Glad to hear it! The University of Calgary folks were able to get their Java 3D-enabled CAVE going on Sun hardware easily as well. > We'll be incorporating the Wand soon and I will send out an email when we do. You might want to check out WandViewBehavior in com.sun.j3d.utils.behaviors.vp to see if you would be duplicating any effort. The folks at the University of Calgary found it fairly easy to extend for the custom interactions they wanted to use. -- 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".
