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

X3D Example Archives: VRML 2 Sourcebook, Chapter 23 Fog

Fog simulates atmospheric effects by blending distant objects with fog color.

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 Models       X3D Model Descriptions
Figure23_1FogTestWorld Figure 23 1 Fog Test World A test world for use in subsequent fog example scenes.
Figure23_2aLinearFogVisibility0 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.
Figure23_2bLinearFogVisibility40 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.
Figure23_2cLinearFogVisibility30 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.
Figure23_2dLinearFogVisibility20 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.
Figure23_3aExponentialFogVisibility100 Figure 23 3a Exponential Fog Visibility 100 An exponential-fog world with a visibility range of 100m. Compare Figures 23.3a, 3b and 3c.
Figure23_3bExponentialFogVisibility40 Figure 23 3b Exponential Fog Visibility 40 An exponential-fog world with a visibility range of 40m. Compare Figures 23.3a, 3b and 3c.
Figure23_3cExponentialFogVisibility20 Figure 23 3c Exponential Fog Visibility 20 An exponential-fog world with a visibility range of 20m. Compare Figures 23.3a, 3b and 3c.
Figure23_4BlackFogVisibility40 Figure 23 4 Black Fog Visibility 40 A foggy world using black fog.
Figure23_5BindingFogsAndBackgrounds Figure 23 5 Binding Fogs And Backgrounds Fog and background pairs are bound and unbound by touching shapes within the world.

Online at https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter23Fog

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/Vrml2Sourcebook/Chapter23Fog

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