Table of Contents Previous Directory Summary Directory Viewpoint Slideshow Javadoc for translated java source Next Directory Summary X3D Resources

X3D Example Archives: X3D4WA, X3D for Web Authors, Chapter 08 User Interactivity

User Interactivity Sensor Nodes

A variety of sensors detect user interactivity with a scene, allowing authors to define animation responses in a device-independent, display-independent way.

User interactivity is accomplished by sensing user actions, which create events that are sent via ROUTE connections.

Sensor output values are produced by CylinderSensor, KeySensor, PlaneSensor, StringSensor and TouchSensor nodes.

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

Authors can use a 10-step algorithm checklist (with example diagram) as an event-animation design pattern that helps build consistent event-routing chains. The supporting Chapter 7 slideset and course videos (NPS, YouTube) for X3D for Web Authors are available online via X3dGraphics.com.

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.

  8 X3D Models       X3D Model Descriptions
CylinderSensorPumpHouse Cylinder Sensor Pump House A CylinderSensor changes the viewing position of a positive-displacement cylinder pump house.
Doors Doors Two doors activated by different fields from a TouchSensor node.
KeySensorLefty Key Sensor Lefty A KeySensor is used to change relative Viewpoints looking at the shark Lefty, while a SphereSensor can also rotate Lefty in place.
PlaneSensorPumpHouse Plane Sensor Pump House PlaneSensor on the red handle controls the overall movement of a positive-displacement cylinder pump.
SphereSensorLefty Sphere Sensor Lefty Using a separate SphereSensor, Lefty shark can be oriented in any direction by remote control. Navigation locked so that no other scene rotation is possible.
StringSensorExample String Sensor Example A StringSensor example that displays typed text in the world.
TouchSensorPumpHouse Touch Sensor Pump House TouchSensor activated positive-displacement cylinder pump house.
UserInteractivitySensorNodes User Interactivity Sensor Nodes A collection of all of the user interactivity sensor nodes: TouchSensor, PlaceSensor, CylinderSensor, SphereSensor, KeySensor, and StringSensor.

Online at https://X3dGraphics.com/examples/X3dForWebAuthors/Chapter08UserInteractivity

Validate XHTML 1.1

Master source-code model archive is under subversion control at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/X3dForWebAuthors/Chapter08UserInteractivity

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

Table of Contents Previous Directory Summary Directory Viewpoint Slideshow Javadoc for translated java source Next Directory Summary X3D Resources