Table 6.257 — DRM_Spot_Light

Property

Description

Class

  • <DRM Spot Light>

Superclass

Subclass

  • None.

Definition

An instance of this DRM class is a <DRM Base Positional Light> instance that specifies an elliptic cone of influence, the tip of which is the specified <DRM Location 3D> component. The cone is bounded where it intersects the sphere centred at the tip, the radius of which is given by the radius field. This results in a a cone-shaped volume of influence, possibly smashed in one direction. Only objects located within this cone can be affected.

The intensity dropoff is computed as follows:

Given a point on a ray in the cone at fixed distance D from the cone apex, if :

I0 is the intensity on the <DRM Lobe Data> direction axis at distance D
Ah is the horizontal angle of the ray in degrees from direction vector
Av is the vertical angle of the ray in degrees from direction vector

the intensity I at the point is computed as follows:

case:  0.0 < horizontal_drop_off_rate, 0.0 < vertical_drop_off_rate

I = I0 × (1.0 - |Ah| × horizontal_drop_off_rate)
    × (1.0 - |Av| × vertical_drop_off_rate)

case:  0.0 = horizontal_drop_off_rate, 0.0 < vertical_drop_off_rate

I = I0 × (1.0 - |Av| × vertical_drop_off_rate)

case:  0.0 < horizontal_drop_off_rate, 0.0 = vertical_drop_off_rate

I = I0 × (1.0 - |Ah| × horizontal_drop_off_rate)

The horizontal_drop_off_rate specifies, in radians, the horizontal angular intensity distribution of the light. The higher this value, the more focused the light. A value of 0,0 specifies a light that equally illuminates all objects within the cone of influence, and instantly falls to an intensity of 0,0 at the edge of the cone of light.

The vertical_drop_off_rate specifies, in radians, the vertical angular intensity distribution of the light. The higher this value, the more focused the light. A value of 0,0 specifies a light that equally illuminates all objects within the cone of influence, and instantly falls to an intensity of 0,0 at the edge of the cone of light.

Clarifications

1 If a <DRM Light Source> instance is subject to dynamic control - that is, if it can be turned on and off - it will have a <DRM Light Source Control Link> component to express that control mechanism.

2 This specifies the position of the given <DRM Base Positional Light> instance.

3 This specifies the lobe shape.

Class diagram

Figure 6.305 — DRM_Spot_Light

Inherited field elements

Field name

Range

Field data type

apply_to_children

 

Boolean

override_positional_lights

 

Boolean

override_infinite_lights

 

Boolean

active_light_value

 

Boolean

radius

≥ 0,0

Float

constant_attenuation_factor

 

Long_Float

linear_attenuation_factor

 

Long_Float

quadratic_attenuation_factor

 

Long_Float

Field elements

Field name

Range

Field data type

horizontal_drop_off_rate

 

Long_Float

vertical_drop_off_rate

 

Long_Float

Associated to (one-way) (inherited)

  • None.

Associated to (one-way)

  • None.

Associated by (one-way) (inherited)

  • None.

Associated by (one-way)

  • None.

Associated with (two-way) (inherited)

  • None.

Associated with (two-way)

  • None.

Composed of (two-way) (inherited)

Composed of (two-way)

Composed of (two-way metadata) (inherited)

  • None.

Composed of (two-way metadata)

  • None.

Component of (two-way) (inherited)

Component of (two-way)

  • None.

Constraints

Example(s)