Titania X3D Editor

Bring Colours to Your Life.

Titania v4.6.10

Bring Colours to Your Life.

X3D Reference

Adding fog


Fog increases realism:

  • Add fog outside to create hazy worlds
  • Add fog inside to create dark dungeons
  • Use fog to set a mood

The further the viewer can see, the more you have to model and draw. To reduce development time and drawing time, limit the viewer's sight by using fog.

Using fog visibility controls

The fog type selects linear or exponential visibility reduction with distance:

  • Linear is easier to control
  • Exponential is more realistic and "thicker"

The visibility range selects the distance where the fog reaches maximum thickness:

  • Fog is "clear" at the viewer, and gradually reduces visibility

Selecting a fog color

  • Fog has a fog color
    • White is typical, but black, red, etc. also possible
  • Shapes are faded to the fog color with distance
  • The background is unaffected
    • For the best effect, make the background the fog color

Syntax: Fog

A Fog node creates colored fog

  • color - fog color
  • visibilityRange - maximum visibility limit

XML Encoding

Classic Encoding


  • Fog has a color, a type, and a visibility range
  • Fog can be used to set a mood, even indoors

Fog limits the viewer's sight:

  • Reduces the amount of the world you have to build
  • Reduces the amount of the world that must be drawn

Cookies and other Technologies

By clicking »Accept« or continuing to use the site, you agree to the use of CREATE3000 and third-party cookies and other similar technologies to enhance your browsing experience, analyze and measure your engagement with our content, and provide more relevant ads on CREATE3000 websites and others. Learn more about cookies. You can withdraw your consent at any time.

create3000.de is going to be shut down next year, but we have a new clean and slick web site for you, go to new X_ITE web site, consider updating your X_ITE URL's, or go to new Titania web site or continue reading.