Package Basic.X3dSpecifications
These examples are used in the X3D Specifications to illustrate correct X3D usage and capabilities.
The X3D Abstract Specification authoritatively defines the functionality of X3D scenes. It specifically describes how geometry rendering and user interaction can be accomplished on any 3D device. Multiple file encodings (.x3d, .x3dv, .x3db) and multiple language bindings (ECMAScript .js, Java .java) can equivalently represent an X3D scene. These examples support five different X3D specifications:
-
XML encoding
(
.x3d
file extension) scenes found in the XML encoding examples. -
Classic VRML encoding
(
.x3dv
file extension). Autogenerated examples matching the master .x3d model can be compared favorably to the Classic VRML encoding examples. -
Compressed Binary Encoding (CBE)
(
.x3db
file extension). Autogenerated examples matching the master .x3d model can be compared favorably to the Binary encoding examples. -
ECMAScript Scene Access Interface (SAI)
scenes and source (
.js
file extension) are provided that match the X3D ECMAScript language binding examples.
TODO, transcription work in progress. -
Java Scene Access Interface (SAI)
scenes and source (
.java
file extension) are provided that match the X3D Java language binding examples.
TODO, testing in progress.
This X3D Basic: X3D Specifications examples archive is online.
The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.
Online: X3D Java Scene Access Interface Library (X3DJSAIL) and X3DJSAIL Javadoc
- See Also:
-
ClassDescriptionX3D encodings example: alarm clock plays chimes once each interval.Rotor node provides animation and serves as an ExternProtoDeclare example.X3D encodings example: main body for Chopper example, used as an Inline to show scene composition.X3D encodings example: spinning rotor (with replacable children) Prototype for Chopper example.X3D encodings example: click to animate a Box.X3D encodings example: ColorInterpolator demonstration modifies Material color.X3D encodings example: a DirectionalLight source illuminates only the objects in its enclosing grouping node.Java Scene Authoring Interface (JSAI) scene and source code example that show adding dynamic ROUTEs to a scene.Java Scene Authoring Interface (JSAI) scene and source code example that show using createX3DFromString to create nodes.Java Scene Authoring Interface (JSAI) scene and source code example that show creation of nodes from a prototype.Java Scene Authoring Interface (JSAI) scene and source code example that show how to use per frame notification to produce a frame rate annotation.Java Scene Authoring Interface (JSAI) scene and source code example that demonstrate a scripted response to a TouchSensor isOver event by changing the color of a Box from blue to red.X3D encodings example: example of animating the camera by depicting an elevator to ease access to a multi-story building.X3D encodings example: execution model demonstrated.Scene incorporating extrusion edge cases.X3D Extrusion spine-aligned cross-section plane (SCP) at a spine point.X3D encodings example: simple demonstration of geometric-property nodes.X3D encodings example: provides control of the viewpoint through use of a script.X3D encodings example: demonstrate reuse and adaptation of content instances through Inline IMPORT, EXPORT statements.X3D encodings example: demonstrate reuse and adaptation of content instances through Inline IMPORT, EXPORT statements.X3D encodings example: demonstrate reuse of content instances through DEF, USE.Java Scene Authoring Interface (JSAI) scene and source code example that show adding dynamic ROUTEs to a scene.Java Scene Authoring Interface (JSAI) scene and source code example that show using createX3DFromString to create nodes.Java Scene Authoring Interface (JSAI) scene and source code example that show creation of nodes from a prototype.Java Scene Authoring Interface (JSAI) scene and source code example that show how to use per frame notification to produce a frame rate annotation.Java Scene Authoring Interface (JSAI) scene and source code example that demonstrate a scripted response to a TouchSensor isOver event by changing the color of a Box from blue to red.X3D encodings example: LevelOfDetail demonstration.X3D Architecture example: NurbsSweptSurface demonstration.X3D Architecture example: NurbsSwungSurface demonstration.X3D encodings example: PointSet demonstration.X3D encodings example: defining a Prototype, demonstration of IS/connect definitions.X3D encodings example: using an externally defined prototype.X3D encodings example: show simple Shapes, including different Materials and geometry.X3D encodings example: create new node RefractiveMaterial for example PrototypesPlus.X3D encodings example: Robot.X3D specification example showing a spinning helicopter rotor that is used by the Chopper model.X3D encodings example: this Script node decides whether or not to open a bank vault given openVault and combinationEntered messages.X3D encodings example: animation of shuttle and pendulum prototype nodes.Demonstrate simple X3D MFString (string array) encoding.Texture projector component example.X3D specification example for TriangleStripSet.X3D scene header and prototype syntax examples.