X3D Example Archives: Basic, Script Conformance

Script Event Passing

Script Conformance examples test the ability of Script nodes to receive, process and produce events that respond to user commands and trigger animation behaviors in the X3D scene graph.

The Script Conformance examples provide examples for the X3D Scripting Component, as implemented using the X3D language binding for ECMAScript. and the X3D language binding for Java.

Original examples are derived from "The Virtual Reality Modeling Language and Java," Communications of the ACM, vol. 41 no. 6, June 1998, pp. 57-64 by Don Brutzman.

  14 X3D Models       X3D Model Descriptions
   AddDynamicRoutesECMAScript AddDynamicRoutesECMAScript This example shows how to add dynamic ROUTE connections to a scene
   AddDynamicRoutesJava AddDynamicRoutesJava This example shows adding dynamic ROUTE connections to a scene
   CreateNodesECMAScript CreateNodesECMAScript This example shows how to use createX3DFromString to create nodes
   CreateNodesFromPrototypeECMAScript CreateNodesFromPrototypeECMAScript This example shows creation of nodes from a prototype
   CreateNodesFromPrototypeJava CreateNodesFromPrototypeJava This example shows creation of nodes from a prototype
   CreateNodesJava CreateNodesJava This example shows how to use createX3DFromString to create nodes
   PerFrameNotificationECMAScript PerFrameNotificationECMAScript This example shows how to use per-frame notification to produce a frame rate output in the Browser console
   PerFrameNotificationJava PerFrameNotificationJava This example shows how to use per-frame notification to produce a frame rate output in the Browser console
   ScriptNodeEventOutControl_EcmaScript ScriptNodeEventOutControl_EcmaScript Script node interface between VRML and EcmaScript: this conformance example tests event-based VRML-EcmaScript functionality.
   ScriptNodeEventOutControl_Java ScriptNodeEventOutControl_Java Script node interface between VRML and Java: this conformance example tests event-based VRML-Java functionality.
   ScriptNodeFieldControl_EcmaScript ScriptNodeFieldControl_EcmaScript Script node interface between VRML and EcmaScript: this conformance example tests field-based VRML-EcmaScript functionality.
   ScriptNodeFieldControl_Java ScriptNodeFieldControl_Java Script node interface between VRML and Java: this conformance example tests field-based VRML-Java functionality.
   TouchSensorIsOverEventECMAScript TouchSensorIsOverEventECMAScript This example demonstrates a scripted response to a TouchSensor isOver event by changing the color of a Box from blue to red
   TouchSensorIsOverEventJava TouchSensorIsOverEventJava This example demonstrates a scripted response to a TouchSensor isOver event by changing the color of a Box from blue to red

The X3D Resources: Examples page and X3D Developers Guide provide more information about the production of this archive.