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

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

[1] Figure27.1VisibilitySensorDungeonSlidingDoors.x3d - Now doors open, because they are visible
Chapter 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 Scenes      9 Viewpoint Snapshots

Figure 27.1 Visibility Sensor Dungeon Sliding Doors    
  [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)


Figure 27.2 Proximity Sensor Dungeon Sliding Doors    
  [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)


Figure 27.3 Collision Detection Spinning Orb    
  [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
http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter27-SensingVisibilityProximityCollision/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/Vrml2Sourcebook/Chapter27-SensingVisibilityProximityCollision/_viewpoints

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