public class SoVRMLDirectionalLight extends SoVRMLLight
SoVRMLDirectionalLight
node defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector.
<font color="#0000FF">NOTE:</font> This class does not exist in Open Inventor 10.0 and later.
The direction
field specifies the direction vector within the local coordinate system that the light illuminates in. Light is emitted along parallel rays from an infinite distance away. A directional light source illuminates only the objects in its enclosing parent group. The light may illuminate everything within this coordinate system, including all children and descendants of its parent group. The accumulated transformations of the parent nodes affect the light.
This section describes the expected behavior of the node in a conforming VRML97 browser application. In some cases, the application is responsible for implementing portions of the expected behavior. Open Inventor viewer classes and IVF classes implement some of the application behaviors.
This section may reference portions of the VRML97 specification that are not present in this help file. The complete VRML97 spec is available at
The SoVRMLDirectionalLight
node defines a directional light source that illuminates along rays parallel to a given 3-dimensional vector. See "Concepts -
Lights" for a definition of the ambientIntensity , color , intensity , and on fields.
The direction
field specifies the direction vector within the local coordinate system that the light illuminates in. Light is emitted along parallel rays from an infinite distance away. A directional light source illuminates only the objects in its enclosing parent group. The light may illuminate everything within this coordinate system, including all children and descendants of its parent group. The accumulated transformations of the parent nodes affect the light.
See "Concepts - Lighting Model" for a precise description of VRML's lighting equations.
File format/default:
VRMLDirectionalLight {
ambientIntensity | 0 |
color | 1 1 1 |
direction | 0 0 -1 |
intensity | 1 |
on | true |
metadata | NULL |
Action behavior:
SoGLRenderAction
Sets: SoGLLightIdElement
SoSFFloat | set_ambientIntensity |
SoSFColor | set_color |
SoSFVec3f | set_direction |
SoSFFloat | set_intensity |
SoSFBool | set_on |
SoSFNode | set_metadata |
SoSFFloat | ambientIntensity_changed |
SoSFColor | color_changed |
SoSFVec3f | direction_changed |
SoSFFloat | intensity_changed |
SoSFBool | on_changed |
SoSFNode | metadata_changed |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFVec3f |
direction
Deprecated.
Illumination direction vector.
|
ambientIntensity, color, intensity, on
metadata
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoVRMLDirectionalLight()
Deprecated.
Constructor.
|
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getEXTERNPROTO, getName, getPROTO, isDisposable, isSynchronizable, setName, setSynchronizable
getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public final SoSFVec3f direction
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com