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

X3D Example Archives: VRML 2 Sourcebook, Chapter 23 - Fog

Fog increases realism and can be used to set a mood, even indoors. Add fog outside to create hazy worlds, or add fog inside to create dark dungeons. Fog has a color, a type, and a visibility range. Fog limits the viewer's sight, reducing the amount of the world you have to build and the amount of the world that must be drawn.

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

Figure 23.5 Binding Fogs And Backgrounds
  10 X3D Scenes       Scene Descriptions
Figure 23.1 Fog Test World A test world for use in subsequent fog example scenes.
Figure 23.2a Linear Fog Visibility 0 A linear-fog world with a default visibilityRange of 0.0 meters (which means Fog has no effect). Compare Figures 23.2a, 2b, 2c and 2d for comparison.
Figure 23.2b Linear Fog Visibility 40 A linear-fog world with a visibility range of 40m. Compare Figures 23.2a, 2b, 2c and 2d.
Figure 23.2c Linear Fog Visibility 30 A linear-fog world with a visibility range of 30m. Compare Figures 23.2a, 2b, 2c and 2d.
Figure 23. 2D Linear Fog Visibility 20 A linear-fog world with a visibility range of 20m. Compare Figures 23.2a, 2b, 2c and 2d.
Figure 23.3a Exponential Fog Visibility 100 An exponential-fog world with a visibility range of 100m. Compare Figures 23.3a, 3b and 3c.
Figure 23.3b Exponential Fog Visibility 40 An exponential-fog world with a visibility range of 40m. Compare Figures 23.3a, 3b and 3c.
Figure 23.3c Exponential Fog Visibility 20 An exponential-fog world with a visibility range of 20m. Compare Figures 23.3a, 3b and 3c.
Figure 23.4 Black Fog Visibility 40 A foggy world using black fog.
Figure 23.5 Binding Fogs And Backgrounds Fog and background pairs are bound and unbound by touching shapes within the world.

Online at http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter23-Fog

Validate XHTML 1.1

Master source code archive is under subversion control at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter23-Fog

Table of Contents Previous Chapter Summary Chapter Viewpoint Slideshow Next Chapter Summary 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.