Fog:Function Property

Short Name: Fog.Function

Requires: Full Development System

Class: SceneObject Properties

To Use: Create a property.

Reads or writes the blending factor you use to apply fog to an object.

Values

0Inherit Fog—Applies fog to the object according to the blending factor of a parent object.
1No Fog—Renders the object with no fog.
2Linear Fog—Applies fog to the object according to the following equation:

f=e–(densityz)

where f is the blend factor and z is the distance from the viewpoint to the center of the fogged fragment in eye coordinates.
3Exponential Fog—Applies fog to the object according to the following equation:

f=e–(densityz)2

where f is the blend factor and z is the distance from the viewpoint to the center of the fogged fragment in eye coordinates.
4Exponential Square Fog—Applies fog to the object according to the following equation:

f=(endz)/(endstart)

where f is the blend factor and z is the distance from the viewpoint to the center of the fogged fragment in eye coordinates.

Remarks

The following table lists the characteristics of this property.

Data type
PermissionsRead/Write
Available in Run-Time EngineYes
Available in Real-Time Operating SystemNo
Settable when the VI is runningYes
Loads the front panel into memoryNo
Need to authenticate before useNo
Loads the block diagram into memoryNo
Remote access allowedYes