DoTranspOrientIntens(3D)

NAME
DoTranspOrientIntens - Create a transparent intensity primitive attribute object for orientation dependent transparency

SYNOPSIS
C:
DtObject DoTranspOrientIntens(intensity)
DtReal intensity;

FORTRAN:
INTEGER*4 DOTOI(INTENS)
REAL*8 INTENS

DESCRIPTION

DoTranspOrientIntens creates a transparent intensity primitive attribute object for orientation dependent transparency.

Orientation dependent transparency means that the transparency of an object varies depending on the orientation of the object and the view direction. The transparency can also vary across the object if it is not completely flat.

The parameter intensity specifies the transparent intensity to be used for subsequent objects when the object is oriented such that the object normal is perpendicular to the viewing direction. If the object normal is parallel to the viewing direction, the value defined by DoTranspIntens <DOTI> is used as the transparent intensity. For other object orientations the object transparent intensity for orientation dependent transparency is calculated as follows:

final transpintens =
     orientintens + (transpintens - orientintens)*((I dot N) ** orientexp)

where orientintens is the value specified by DoTranspOrientIntens, transpintens is the value specified by DoTranspIntens <DOTI>, orientexp is the value specified by DoTranspOrientExp <DOTOE>, N is the object normal, and I is the viewing direction (or the incoming ray direction for ray-tracing).

To enable orientation dependent transparency, both DoTranspOrientSwitch <DOTOS> and DoTranspSwitch <DOTS> must be turned on.

DEFAULTS
The default DoTranspOrientIntens is 0.5.

SEE ALSO
DoTranspOrientSwitch(3D), DoTranspOrientColor(3D), DoTranspOrientExp(3D), DoTranspIntens(3D), DoTranspColor(3D), DoTranspSwitch(3D)