The SEDRIS Data Representation Model
APPENDIX A - Classes
Blend Directional Light

Class Name: Blend Directional Light

Superclass - <Directional Light Behaviour>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class is a <Directional Light Behaviour>, the intensity of which varies depending on the observer's position relative to the light's location, direction, and shape. This light takes the shape of a pyramid, subdivided by two planes. These planes are based at the pyramid's apex and extend towards the base. They subdivide the pyramid into upper and lower sections with a blend section in between. The upper section receives the primary colour, while the lower section receives the secondary colour. The blend section blends between the primary and secondary colours depending on the viewing position.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

This class appears on only one page of the DRM class diagram.

Example

  1. Consider a <Blend Directional Light> instance with both a primary and a secondary colour.

    Blend Directional Light, Example 1

    At 10 degrees from the light direction vector in the vertical direction, towards the positive end of the vertical axis vector, the primary colour is visible, because the position lies in the upper section of the pyramid, inside the lobe.

    At 10 degrees from the light direction vector in the vertical direction, towards the positive end of the vertical axis vector, the primary colour is visible, because the position lies at the upper edge of the blend section. Moving from this position along the vertical axis vector toward the negative end, the amount of primary colour decreases as it is blended with proportionally increasing amounts of the secondary colour, because this lies within the blend section of the pyramid, from the upper edge to the lower edge. At -0.5 degrees from the light direction vector in the vertical direction (i.e., towards the negative direction of the vertical axis), the primary and secondary colours are blended in equal amounts, since this position is in the middle of the blend section. Moving in the same direction, the amount of primary colour continues to decrease proportionally as the amount of secondary colour increases. At -2.5 degrees from the light direction, only the secondary colour is visible, as this is the lower edge of the blend section.

    At -10 degrees from the light direction vector in the vertical direction, i.e. towards the negative end of the vertical axis vector, the secondary colour is visible, as this lies in the lower section of the pyramid.

    At -50 degrees from the light direction vector in the vertical direction, i.e. towards the negative end of the vertical axis vector, nothing is visible, since this lies outside the pyramid.

FAQs

No FAQs supplied.

Constraints

None.

Composed of (two-way)(inherited)

Component of (two-way)(inherited)

Inherited Field Elements

This class has no inherited field elements.

Field Elements

SE_Long_Float upper_plane_angular_offset; (notes)
SE_Long_Float lower_plane_angular_offset; (notes)

Notes

Composed of Notes


Lobe_Data

 This specifies the lobe shape.

Fields Notes


upper_plane_angular_offset

 This specifies the angular offset of the plane separating the upper
 and blend sections, in degrees (-180 to 180) from the
 <Lobe Data>'s SE_REF_VEC_TYP_LIGHT_DIRECTION vector, measured
 along its SE_REF_VEC_TYP_VERTICAL_AXIS vector.

 The resulting upper section of the light is taken to be
 between the plane and the positive end of the vertical axis
 vector.

lower_plane_angular_offset

 This specifies the angular offset of the plane separating the lower
 and blend sections, in degrees (-180 to 180) from the
 <Lobe Data>'s SE_REF_VEC_TYP_LIGHT_DIRECTION vector, measured
 along its SE_REF_VEC_TYP_VERTICAL_AXIS vector.

 The resulting lower section of the light is taken to be between
 the plane and the negative end of the vertical axis vector.

Prev: Base Vertex. Next: Bounding Volume. Up:Index.

Last updated: May 15, 2003 Copyright © 2003 SEDRIS™