Table of Contents Previous Chapter Viewpoint Screenshots Slideshow for each scene Next Chapter X3D Resources

X3D Example Archives: X3D for Web Authors, Chapter 09 - Event Utilities Scripting

IntegerSequencer example:  Road Work Ahead!

Event utility nodes simplify data-type conversion of events when producing animation chains between nodes. These include BooleanFilter, BooleanSequencer, BooleanToggle, IntegerSequencer, IntegerTrigger and TimeTrigger, which are illustrated in the quick-reference sheet X3D Event Utility Nodes: Field Event Diagrams.

The Script node node allows authors to define new functionality produced by JavaScript or Java code. Field declarations define inputOnly, outputOnly, initializeOnly and inputOutput access and types for each field.

The supporting Chapter 9 slideset and course videos are available online via X3dGraphics.com.

X3D Scenes Descriptions
Background Color Array Animation Design pattern demonstrating type conversion from single SFColor value (sent from a ColorInterpolator node) to an MFColor array (in a Background node).
Boolean Filter Pump House A BooleanFilter node starts the animation of cones orbiting near the pump house, instead of an unfiltered TouchSensor toggling the animation on/off during selection/deselection.
Boolean Sequencer Integer Sequencer Show synchronized use of BooleanSequencer and IntegerSequencer nodes for SpotLight enabled and Switch whichChoice control, respectively
Boolean Sequencer Pump House A BooleanSequencer node intermittently interrupts animation of the pump house.
Boolean Toggle A BooleanToggle button determines whether an animated Cone is jittery or not.
Boolean Toggle Pump House A BooleanToggle node controls pump house animation: select to stop, then select again to restart.
Boolean Trigger Pump House Positive-displacement cylinder pump to emulate breakers surge, designed and built by David Packard.
Circle Lines Example Example circle and cross-hairs made out of line segments, autogenerated by a simple Java program.
Circle Lines Example 60 Example circle and cross-hairs made out of line segments, autogenerated by a simple Java program.
Elevation Grid Simple Wave Animation Simple Javascript animation of ElevationGrid
Integer Sequencer Pump House An IntegerSequencer node switches the display of colored cones near the pump house.
Integer Sequencer Road Sign Switcher Switch among different road signs using IntegerSequencer
Integer Trigger An IntegerTrigger node controls the display of colored text.
Integer Trigger Pump House An IntegerTrigger node controls the display of colored cones near the pump house.
Mood Selector Design pattern demonstrating multiple TouchSensor, IntegerTrigger, Shape and ROUTE combinations for selecting a Switch
Script Complex State Events A three-way lamp controlled by a Script node.
Script Control Events A three-way light controlled by a Script node.
Script Events A Script node drives the position and orientation of orbiting cones near the pump house.
Script Events Pump House A Script node provides the path and orientation animation for three cones that orbit near the pump house.
Script Node Event Out Control - Ecma Script Script node interface between X3D and EcmaScript: this conformance example tests event-based X3D-EcmaScript functionality.
Script Node Field Control - Ecma Script Script node interface between X3D and EcmaScript: this conformance example tests field-based X3D-EcmaScript functionality.
Script Simple State Events A Script node drives an animated push button that turns a light on and off.
Test Script Initialization Test ability to perform Script initialize() method using ECMAsript
Time Trigger Pump House Pump house animation activated by a TimeTrigger node.
Time Trigger Test Test of TimeTrigger node.

http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter09-EventUtilitiesScripting

Table of Contents Previous Chapter Viewpoint Screenshots Slideshow for each scene Next Chapter X3D Resources

Also available: current and archived nightly builds and distributions of these examples, all published under an open-source license.

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