X3D Example Archives: VRML 2 Sourcebook, Chapter 27 Sensing Visibility Proximity Collision

[1] Figure27_1VisibilitySensorDungeonSlidingDoors.x3d Now doors open, because they are visible
Directory Viewpoint Slideshow

Sensing viewer activity enables the scene to trigger animations. A VisibilitySensor node checks if a region is visible to the viewer, where the region is described by a center and a size. Time events are sent on entry and exit of visibility, and true/false is sent on entry and exit of visibility. A ProximitySensor node similarly checks if the viewer is within a region, also sending viewer position and orientation while within the sensed region. Collision is a grouping node that checks if the viewer has run into a shape defined by the node's children (or else simpler proxy geometry) with a collision time event sent upon contact.

These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.

Figure 27.1 Visibility Sensor Dungeon Sliding Doors
3 X3D Models                 9 X3D Model Viewpoint Snapshots

Figure27_1VisibilitySensorDungeonSlidingDoors
Figure 27 1 Visibility Sensor Dungeon Sliding Doors.x3d    
[1] Figure27_1VisibilitySensorDungeonSlidingDoors.x3d Now doors open, because they are visible
[2] Figure27_1VisibilitySensorDungeonSlidingDoors.x3d Now doors close, because they are not visible
[3] Figure27_1VisibilitySensorDungeonSlidingDoors.x3d (default X3D view)

Figure27_2ProximitySensorDungeonSlidingDoors
Figure 27 2 Proximity Sensor Dungeon Sliding Doors.x3d    
[4] Figure27_2ProximitySensorDungeonSlidingDoors.x3d Now you see doors closed, because they are far away
[5] Figure27_2ProximitySensorDungeonSlidingDoors.x3d Now you see doors opened, because you are close
[6] Figure27_2ProximitySensorDungeonSlidingDoors.x3d (default X3D view)

Figure27_3CollisionDetectionSpinningOrb
Figure 27 3 Collision Detection Spinning Orb.x3d    
[7] Figure27_3CollisionDetectionSpinningOrb.x3d Zoom in on the orb to trigger the Collision node
[8] Figure27_3CollisionDetectionSpinningOrb.x3d Close-up viewpoint by the orb that triggers the Collision node
[9] Figure27_3CollisionDetectionSpinningOrb.x3d (default X3D view)
 

This viewpoint slideshow is online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter27SensingVisibilityProximityCollision/viewpointSlideshow.html

Validate XHTML 1.1

Viewpoint image version history at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter27SensingVisibilityProximityCollision/_viewpoints