Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Next Chapter Viewpoint Slideshow X3D Resources

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

[1] BackgroundColorArrayAnimation.x3d - (default X3D view from 0 0 10)
Chapter Viewpoint Slideshow
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 nodes.

The quick-reference sheet X3D Event Utility Nodes: Field Event Diagrams illustrates the functionality of the event utility nodes. These nodes receive and pass values that are sent via ROUTE connections.

The Script node allows authors to define new functionality produced by JavaScript (ECMAscript) or Java code. Authors can add field declarations that define accessType (inputOnly, outputOnly, initializeOnly and inputOutput) and type for each field.

The supporting Chapter 9 slideset and course videos (NPS, YouTube) for X3D for Web Authors are available online via X3dGraphics.com.

Also available: X3D Scene Authoring Hints for Scripts and URL Links.

28 X3D Scenes      50 Viewpoint Snapshots

Background Color Array Animation    
  [1] BackgroundColorArrayAnimation.x3d - (default X3D view from 0 0 10)


Boolean Filter Pump House    
  [2] BooleanFilterPumpHouse.x3d - Click pump house to activate

  [3] BooleanFilterPumpHouse.x3d - (default X3D view from 0 0 10)


Boolean Sequencer Integer Sequencer    
  [4] BooleanSequencerIntegerSequencer.x3d - (default X3D view from 0 0 10)


Boolean Sequencer Pump House    
  [5] BooleanSequencerPumpHouse.x3d - touch and hold to interrupt pump operation

  [6] BooleanSequencerPumpHouse.x3d - (default X3D view from 0 0 10)


Boolean Toggle    
  [7] BooleanToggle.x3d - Select red button to toggle cone jitter

  [8] BooleanToggle.x3d - (default X3D view from 0 0 10)


Boolean Toggle Pump House    
  [9] BooleanTogglePumpHouse.x3d - Click pump house to toggle operation

  [10] BooleanTogglePumpHouse.x3d - (default X3D view from 0 0 10)


Boolean Trigger Pump House    
  [11] BooleanTriggerPumpHouse.x3d - select pump house to activate

  [12] BooleanTriggerPumpHouse.x3d - (default X3D view from 0 0 10)


Circle Lines Example    
  [13] CircleLinesExample.x3d - CircleLines Example

  [14] CircleLinesExample.x3d - (default X3D view from 0 0 10)


Circle Lines Example 60    
  [15] CircleLinesExample60.x3d - Circle Lines Example

  [16] CircleLinesExample60.x3d - (default X3D view from 0 0 10)


Circle Lines Sphere Latitude    
  [17] CircleLinesSphereLatitude.x3d - CircleLines Example

  [18] CircleLinesSphereLatitude.x3d - (default X3D view from 0 0 10)


Circle Lines Sphere Longitude    
  [19] CircleLinesSphereLongitude.x3d - LongitudeLines Example

  [20] CircleLinesSphereLongitude.x3d - (default X3D view from 0 0 10)


Elevation Grid Simple Wave Animation    
  [21] ElevationGridSimpleWaveAnimation.x3d - Wave view

  [22] ElevationGridSimpleWaveAnimation.x3d - (default X3D view from 0 0 10)


Integer Sequencer Pump House    
  [23] IntegerSequencerPumpHouse.x3d - Click pump house for next cone

  [24] IntegerSequencerPumpHouse.x3d - (default X3D view from 0 0 10)


Integer Sequencer Road Sign Switcher    
  [25] IntegerSequencerRoadSignSwitcher.x3d - Road sign switcher, 6m away

  [26] IntegerSequencerRoadSignSwitcher.x3d - (default X3D view from 0 0 10)


Integer Trigger    
  [27] IntegerTrigger.x3d - Select text to change color

  [28] IntegerTrigger.x3d - (default X3D view from 0 0 10)


Integer Trigger Pump House    
  [29] IntegerTriggerPumpHouse.x3d - Book View

  [30] IntegerTriggerPumpHouse.x3d - (default X3D view from 0 0 10)


Mood Selector    
 [31] MoodSelector.x3d - How do you feel today?
 [32] MoodSelector.x3d - (default X3D view from 0 0 10)

new ECMAscript Test    
  [33] newECMAscriptTest.x3d - Check X3D console to see output

  [34] newECMAscriptTest.x3d - (default X3D view from 0 0 10)


Script Complex State Events    
  [35] ScriptComplexStateEvents.x3d - Control 3-way lamp

  [36] ScriptComplexStateEvents.x3d - (default X3D view from 0 0 10)


Script Control Events    
  [37] ScriptControlEvents.x3d - Push button to change light color

  [38] ScriptControlEvents.x3d - Book View

  [39] ScriptControlEvents.x3d - (default X3D view from 0 0 10)


Script Events    
  [40] ScriptEvents.x3d - click pump house to spin cones

  [41] ScriptEvents.x3d - Book View

  [42] ScriptEvents.x3d - (default X3D view from 0 0 10)


Script Events Pump House    
  [43] ScriptEventsPumpHouse.x3d - Book View

  [44] ScriptEventsPumpHouse.x3d - (default X3D view from 0 0 10)


Script Node Event Out Control - Ecma Script    
  [45] ScriptNodeEventOutControl-EcmaScript.x3d - View test

  [46] ScriptNodeEventOutControl-EcmaScript.x3d - (default X3D view)


Script Node Field Control - Ecma Script    
  [47] ScriptNodeFieldControl-EcmaScript.x3d - View test

  [48] ScriptNodeFieldControl-EcmaScript.x3d - (default X3D view from 0 0 10)


Script Simple State Events    
  [49] ScriptSimpleStateEvents.x3d - click switch to toggle light

  [50] ScriptSimpleStateEvents.x3d - (default X3D view from 0 0 10)


Test Script Initialization    
 [51] TestScriptInitialization.x3d - (default X3D view from 0 0 10)

Time Trigger Pump House    
  [52] TimeTriggerPumpHouse.x3d - Book View

  [53] TimeTriggerPumpHouse.x3d - (default X3D view from 0 0 10)


Time Trigger Test    
 [54] TimeTriggerTest.x3d - TimeTrigger test
 [55] TimeTriggerTest.x3d - (default X3D view from 0 0 10)
 

This viewpoint slideshow is online at
http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter09-EventUtilitiesScripting/viewpointSlideshow.html

Validate XHTML 1.1

Viewpoint image version history at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter09-EventUtilitiesScripting/_viewpoints

Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Next Chapter Viewpoint Slideshow X3D Resources