Class dnx.lr.node.PointLightNode
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class dnx.lr.node.PointLightNode

java.lang.Object
   |
   +----dnx.util.DNXObject
           |
           +----dnx.lr.Node
                   |
                   +----dnx.lr.LeafNode
                           |
                           +----dnx.lr.node.PointLightNode

public class PointLightNode
extends LeafNode
implements GlobalPassViewVolumeNode
 PointLight {
    exposedField SFFloat      ambientIntensity 0
    exposedField SFVec3f      attenuation     1 0 0
    exposedField SFColor      color           1 1 1 
    exposedField SFFloat      intensity       1
    exposedField SFVec3f      location        0 0 0
    exposedField SFBool       on              TRUE
    exposedField SFFloat      radius          100
 }

The PointLight node specifies a point light source at 3D location in the local coordinate system. A point source emits light equally in all directions; that is, it is omni-directional. PointLights are specified in their local coordinate system and are affected by parent transformations.

See "Concepts - Light Sources" for a detailed description of the ambientIntensity, color, and intensity fields.

A PointLight may illuminate geometry within radius (>= 0.0) meters of its location. Both radius and location are affected by parent transformations (scale radius and transform location).

A PointLight's illumination falls off with distance as specified by three attenuation coefficients. The attenuation factor is 1/(attenuation[0] + attenuation[1]*r + attenuation[2]*r^2), where r is the distance of the light to the surface being illuminated. The default is no attenuation. An attenuation value of 0 0 0 is identical to 1 0 0. Attenuation values must be >= 0.0. Renderers that do not support a full attenuation model may approximate as necessary. See "Concepts - Lighting Model" for a detailed description of VRML's lighting equations.


Variable Index

 o ambientIntensity
 o attenuation
 o color
 o intensity
 o location
 o on
 o radius

Constructor Index

 o PointLightNode()

Method Index

 o boundingBoxHasChanged(Field)
Meant to be overridden by subclasses.
 o createNodeDefinition(NodeDefinition)
Create the node definition.
 o handleFieldChange(Field)
Handle a field change.
 o handleGlobalPass(NodeInstance, RenderState, Matrix4)
 o initFields()
Initialize field values.
 o recomputeBoundingBox(BoundingBox3)
Meant to be overridden by subclasses; compute the bounding box and store into the argument.

Variables

 o ambientIntensity
  public SFFloat ambientIntensity
 o attenuation
  public SFVec3f attenuation
 o color
  public SFColor color
 o intensity
  public SFFloat intensity
 o location
  public SFVec3f location
 o on
  public SFBool on
 o radius
  public SFFloat radius

Constructors

 o PointLightNode
  public PointLightNode()

Methods

 o createNodeDefinition
  protected void createNodeDefinition(NodeDefinition def)
Create the node definition.
Overrides:
createNodeDefinition in class Node
 o initFields
  protected void initFields()
Initialize field values.
Overrides:
initFields in class Node
 o handleFieldChange
  protected void handleFieldChange(Field f)
Handle a field change.
Overrides:
handleFieldChange in class Node
 o recomputeBoundingBox
  public void recomputeBoundingBox(BoundingBox3 box)
Meant to be overridden by subclasses; compute the bounding box and store into the argument.
Overrides:
recomputeBoundingBox in class Node
 o boundingBoxHasChanged
  protected boolean boundingBoxHasChanged(Field f)
Meant to be overridden by subclasses.
Overrides:
boundingBoxHasChanged in class Node
 o handleGlobalPass
  public void handleGlobalPass(NodeInstance inst,
                               RenderState state,
                               Matrix4 objectToViewerMatrix)

All Packages  Class Hierarchy  This Package  Previous  Next  Index