FOG_DISTANCE_MIN

FOG_DISTANCE_MIN D

SET THE FOG MINIMUM DISTANCE IN THE 3D TARGET OBJECT (SCENE3D)

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

ACTION

The command FOG_DISTANCE_MIN D set the fog maximum distance in the 3D target object (SCENE3D): a 3D object at a distance from the camera less than D is not affected by the fog.

Bu default, the distance is 10.

SYNTAX: FOG_DISTANCE_MIN D

  • R = distance value (integer or real).

USE

  • The command FOG_DISTANCE_MIN is used to set the fog minimum distance.

ERROR

  • If no SCENE3D is created.
  • If D is not a correct expression.
  • If D is less than or equal to 0.

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

fog_distance_max 700

fog_distance_min 5

caption 0,"FOG_ON"

SEE ALSO

FOG_DISTANCE_MAX

FOG_COLOR

FOG_ON

FOG_OFF