FOG_ON

FOG_ON

STARTS THE FOG EFFECT IN THE 3D TARGET OBJECT (SCENE3D)

  • Type: Command
  • Parameter: 0
  • Group: 3D Objects

ACTION

The command FOG_ON starts the fog effect in the 3D target system object (SCENE3D) and re-initializes the fog parameters to the standard values.

Standard values: the fog is white, its minimal distance is 10 and its maximal distance is 1000.

The color can be changed by FOG_COLOR, the minimal distance by FOG_DISTANCE_MIN and the maximal distance by FOG_DISTANCE_MAX.

Remark: the fog effect is stopped by the command FOG_OFF.

SYNTAX: FOG_ON

USE

  • The command FOG_ON is used to start the fog effect.

ERROR

  • If no SCENE3D is created.

EXAMPLE

scene3d 1:full_space 1

3d_sphere 1,10

3d_z_position 1,-500

wait 1000

fog_on:caption 0,"FOG_ON"

wait 1000

fog_off:caption 0,"FOG_OFF"

wait 1000

fog_on

fog_color 220,220,220

caption 0,"FOG_ON"

SEE ALSO

FOG_DISTANCE_MAX

FOG_DISTANCE_MIN

FOG_COLOR

FOG_OFF