Basic HTML version of Foils prepared April 6 1997

Foil 169 Creating A Virtual Atmosphere Effect

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 97. by Zeynep Ozdemir(Geoffrey C. Fox)


By using a Fog node, a light haze or a thick, pea-soap fog can be produced. It is also possible to define a color for this fog effect.
  • Fog {
  • color 1 1 1 # exposedField SFColor
  • fogType "LINEAR" # exposedField SFString
  • visibilityRange 0 # exposedField SFFloat
  • set_bind # eventIn SFBool
  • isBound # eventOut SFBool
  • }
color specifies the RGB color of a fog.
visibilityRange specifies the maximum distance between viewer and the shapes in the world so that the shapes which are away from the viewer can not be seen by the viewer because of the fog effect.
fogType defines the interpolation of fog thickness with repect to the distance between shape and viewer. It can be LINEAR or EXPONENTIAL.



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Mar 15 1998