Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 3 of 5
Because we will be covering Java OpenGL bindings in a future column, I have decided to economize and use the OpenGL version of Java 3D in these installation instructions too. If you install the OpenGL version to use with these Java 3D examples, you will have the rendering libraries you need for the Java-OpenGL examples to come later.
The software components you need to use Java 3D are:
Optionally, you may also want to download the Java 3D documentation and example code. Both are available from the same link as the Java 3D runtime.
Please note that you are no longer required to set the CLASSPATH environment variables in order for your java or appletviewer executables to find extension libraries. With Java 1.2, Sun has finally created a standard extension directory. This directory is located at /jre/lib/ext/ within your JDK installation directory. For instance, on my system, Java 1.2 Beta 4 is installed at:
C:\jdk1.2beta4\
and the standard extension directory is at:
C:\jdk1.2beta4\jre\lib\ext\
All extension libraries should place their jar archives into this extensions directory at install-time, and all standard JDK tools know to search here for needed class files.
For Sun's Java 3D, these archives include both public (documented in the Java 3D API specification) and private (Sun implementation-specific) classes. Public class archives include:
j3dcore.jar -- Contains class files for the public Java 3D package javax.media.j3d.vecmath.jar -- Contains classes for javax.vecmath.
Private archives include:
j3daudio.jar -- Archives the com.sun.j3d.audio classes, which build support for spatialized audio on top of a custom copy of the Java portion of the Java Sound, Headspace-based
audio engine, debuting in Java 1.2.j3dutils.jar -- Encapsulates a variety of Sun utility classes in 16 total packages and subpackages underneath com.sun.j3d. I will dig deeper into these packages in next month's continuation of our Java 3D discussion.j3dutilscontrib.jar -- Archives useful utilities contributed by others to Sun's efforts. There are seven packages under the com.sun.j3d hierarchy, including the com.sun.j3d.utils.trackers code mentioned above. Again, next month's column will provide more information on the packages in this jar.Please note that in theory you may instantiate and call methods on any of the classes provided in nonstandard packages like
com.sun, but caveat emptor: There is no guarantee they will be available on the platform your code executes on. In current practice, Java 3D is only
available from Sun, so a lot of developers do, in fact, use classes within Sun's private archives. You should be aware of
the potential portability trade-off entailed in choosing to do so.