GR

The GR domain is an experimental domain designed for three dimensional graphical animations. It is an untimed domain with particular optimizations aimed at reducing recomputations of scene graph components. A model consists of a set of three dimensional graphical elements, such as spheres, cylinders, etc., composed and transformed to form a scene graph. It is particularly interesting and useful to couple this domain with others, where the other domains provide the transformations for the graphical elements. For example, a model of a physical system might be constructed in CT and animated in GR.

Java3D

The GR domain demos require Java3D, which can be installed from http://java.sun.com/products/java-media/3D/. You need not install Java3D if you are not planning on using GR domain.

If you plan on recompiling the GR domain, then install the Java 3D SDK and runtime. If you plan on only running the GR domain demos, then installing only the Java 3D runtime should be sufficient.

We have verified the demos with the Java 3D 1.2.1_04 SDK (DirectX Version).

Note that JDK1.4.0 and later requires Java 3D 1.2.1_04 or later. If you run with Java 3D 1.2.1_03 and JDK1.4.0, the GR demos will fail to initialize and you will see the message:

Fail to create back buffer - DDERR_INALIDPARAM
The Java 3D 1.2.1_04 release notes say that this bug:
4470749 Java3D fail to initialize underlying OGL/D3D library in jdk1.4
was fixed in Java 3D 1.2.1_04

If you are running Ptolemy II under Web Start, see Installing Java 3D for use with Web Start

If, when you run the GR domain demos, you get a message about d3d8.dll missing, then you probably need to install DirectX.
DirectX can be downloaded from http://www.microsoft.com/downloads/search.aspx?displaylang=en&categoryid=2

Resources

  • Ptolemy II Plugin troubleshooting guide
  • See also the Java 3D FAQ question What do I have to do so that Java 3D will run from by browser?
  • Running Java 3D Applets under Windows

    1. Install Java 3D from http://java.sun.com/products/java-media/3D/.
      We have verified the demos with the Java 3D 1.2.1_04 SDK (DirectX Version).
      The installation should update the Java Runtime Environment that the browser uses.
    2. The Java 3D SDK installation includes demonstrations that can be run from your browser.
      Under Windows, go to the demo/java3d subdirectory in your JDK directory, for example file:///C|/j2sdk1.4.2_04/demo/java3d/index.html and run the HelloUniverse demo
      If you can't find the demos on your local disk, try http://java.sun.com/products/java-media/3D/demos/
    3. If the demo fails to run, look in the Java Plugin console window. If you get a message like
      java.lang.NoClassDefFoundError: javax/media/j3d/SceneGraphObject
      
      Then be sure that the Java 3D jar files (j3daudio.jar, j3dcore.jar, j3dutils.jar,vecmath.jar) are located in the lib/ext directory for the plugin.
      The plugin is usually located in c:/Program Files/javasoft/JRE and in theory the Java 3D installation should place the jar files, but you may need to copy them by hand.
      cp c:/j2sdk1.4.2_04/jre/lib/ext/*  c:/Program\ Files/Java/j2re1.4.2_04/lib/ext
      
      You may also need to copy J3D.dll
      cp c:/j2sdk1.4.2_04/jre/bin/J3D.dll  c:/Program\ Files/Java/j2re1.4.2_04/bin