Package Vrml2Sourcebook.Chapter23Fog
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.
This X3D VRML2 Sourcebook Chapter 23 Fog examples archive is online.
The X3D Java Scene Access Interface (x3djsail) package provides concrete classes for each X3D node and statement.
Online: X3D Java Scene Access Interface Library (X3DJSAIL) and X3DJSAIL Javadoc
- See Also:
-
ClassDescriptionA test world for use in subsequent fog example scenes.A linear-fog world with a default visibilityRange of 0.0 meters (which means Fog has no effect).A linear-fog world with a visibility range of 40m.A linear-fog world with a visibility range of 30m.A linear-fog world with a visibility range of 20m.An exponential-fog world with a visibility range of 100m.An exponential-fog world with a visibility range of 40m.An exponential-fog world with a visibility range of 20m.A foggy world using black fog.Fog and background pairs are bound and unbound by touching shapes within the world.