VRML 97 Specification

Page Description
Chopper Body VRML 97 specification example: main body for Chopper example, used as an Inline to show scene composition.
Chopper Rotor VRML 97 specification example: Rotor node provides animation and serves as an ExternProtoDeclare example.
Example 02 VRML 97 specification example: a simple scene defining a view of a red Sphere and a blue Bbox, lit by a DirectionalLight.
Example 03 VRML 97 specification example: Reading the following file results in three spheres being drawn. The first sphere defines a unit sphere at the origin named "Joe", the second sphere defines a smaller sphere translated along the +x axis, the third sphere is a reference to the second sphere and is translated along the -x axis. If any changes occur to the second sphere (e.g. radius changes), then the third sphere, will change too.
Example 04 VRML 97 specification example: Prototype
Example 05 VRML 97 specification example: This Script node decides whether or not to open a bank vault given openVault and combinationEntered messages. To do this, it remembers whether or not the correct combination has been entered. The Script node combined with a Sphere, a TouchSensor and a Sound node to show how is works. When the pointing device is over the sphere, the combinationEntered eventIn of the Script is sent. Then, when the Sphere is touched (typically when the mouse button is pressed) the Script is sent the openVault eventIn. This generates the vaultUnlocked eventOut which starts a 'click' sound.
Example 06 VRML 97 specification example: Geometric properties
Example 07 VRML 97 specification example: Prototypes and alternate representations
Example 08 VRML 97 specification example: Anchor examples.
Example 09 VRML 97 specification example: A DirectionalLight source illuminates only the objects in its enclosing grouping node. The light illuminates everything within this coordinate system, including the objects that precede it in the scene graph.
Example 10 VRML 97 specification example: simple PointSet example composed of 3 points. The first point is red (1 0 0), the second point is green (0 1 0), and the third point is blue (0 0 1). The second PointSet instances the Coordinate node defined in the first PointSet, but defines different colours.
Example 11 VRML 97 specification example: The LOD node is typically used for switching between different versions of geometry at specified distances from the viewer. However, if the range field is left at its default value, the browser selects the most appropriate child from the list given. It can make this selection based on performance or perceived importance of the object. Children should be listed with most detailed version first just as for the normal case. This "performance LOD" feature can be combined with the normal LOD function to give the browser a selection of children from which to choose at each distance. In this example, the browser is free to choose either a detailed or a less-detailed version of the object when the viewer is closer than 10 meters (as measured in the coordinate space of the LOD). The browser should display the less detailed version of the object if the viewer is between 10 and 50 meters and should display nothing at all if the viewer is farther than 50 meters. Browsers should try to honor the hints given by authors, and authors should try to give browsers as much freedom as they can to choose levels of detail based on performance.
Example 12 VRML 97 specification example: ColorInterpolator interpolates from red to green to blue to red in a 10 second cycle
Example 13 2 VRML 97 specification example: click to animate a Box.
Example 13 3 VRML 97 specification example: alarm clock plays chimes once each interval.
Example 14 VRML 97 specification example: animation of shuttle and pendulum prototype nodes.
Example 15 VRML 97 specification example: Robot. Seek or zoom in towards the robot to start a simple animation sequence.
Example 16 VRML 97 specification example: Chopper. Click chopper to toggle rotor spinning.
Example 17 VRML 97 specification example: VRML provides control of the viewer's camera through use of a script. This is useful for things such as guided tours, merry-go-round rides, and transportation devices such as buses and elevators. These next two examples show a couple of ways to use this feature. This example is a simple guided tour through the world. Upon entry, a guide orb hovers in front of the viewer. Click on this and a tour through the world begins. The orb follows the user around on his tour. A ProximitySensor ensures that the tour is started only if the user is close to the initial starting point. Note that this is done without scripts thanks to the touchTime output of the TouchSensor.
Example 18 VRML 97 specification example: another example of animating the camera by depicting an elevator to ease access to a multi-storey building. For this example, a 2 storey building is shown and it is assumed that the elevator is already at the ground floor. To go up, the user just steps onto the elevator platform. A ProximitySensor fires and starts the elevator up automatically. Additional features such as call buttons for outside the elevator, elevator doors, and floor selector buttons could be added to make the elevator easier to use.
Example 19 VRML 97 specification example: Execution model demonstrated. Click ball to see script-generated text appear.
Refractive Material VRML 97 specification example: create new node RefractiveMaterial for example D.7
Rotor VRML 97 specification example: spinning rotor (with replacable children) Prototype for Example D 16 Chopper.