Class SoQuadAreaLight
- All Implemented Interfaces:
SafeDisposable
As a light source node, this node affects subsequent shapes in the scene graph, depending on the current lighting model. The current transformation affects this node, and you can place it inside a SoSeparator node to avoid affecting any objects outside that SoSeparator.
You can also use a node kit to create a light; see the reference page for SoLightKit.
Unlike other light nodes, SoQuadAreaLight only supports the SoLightModel.PHYSICALLY_BASED lighting model. This node has no effect on the rendering if any another lighting model is simultaneously used.
Use the color and intensity fiels to control the color and intensity of the light.
The location, orientation, width, and height fields define the geometry of the rectangular area covered by the light.
The twoSided field defines whether or not to use both sides of the rectangular area as a source of illumination.
File format/default:
QuadAreaLight {
| on | true |
| intensity | 1 |
| color | 1 1 1 |
| shadowIntensity | 1 |
| location | 0 0 0 |
| orientation | 0 0 1 0 |
| width | 1 |
| height | 1 |
| twoSided | false |
Action behavior:
SoGLRenderAction
Activates this light (if so specified) during traversal. All shape nodes that come after this light in the scene graph are illuminated by this light. The current transformation affects the light's direction. Sets: SoLightElement, SoLightIdElement
- Since:
- Open Inventor 2025.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.openinventor.inventor.nodes.SoNode
SoNode.RenderModesNested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal SoSFFloatHeight of the area.final SoSFVec3fLocation of the source (center of the area).final SoSFRotationPrincipal orientation of illumination (normal vector of the area), defined as aSoSFRotationobject.final SoSFBoolTwo-Sided illumination.final SoSFFloatWidth of the area.Fields inherited from class com.openinventor.inventor.nodes.SoLight
color, intensity, on, shadowIntensityFields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.openinventor.inventor.nodes.SoNode
affectsState, callback, copy, copy, distribute, doAction, getAlternateRep, getBoundingBox, getByName, getMatrix, getPrimitiveCount, getRenderEngineMode, getRenderUnitID, GLRender, GLRenderBelowPath, GLRenderInPath, GLRenderOffPath, grabEventsCleanup, grabEventsSetup, handleEvent, isBoundingBoxIgnoring, isOverride, pick, rayPick, search, setOverride, touch, writeMethods inherited from class com.openinventor.inventor.fields.SoFieldContainer
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaultsMethods inherited from class com.openinventor.inventor.misc.SoBase
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizableMethods inherited from class com.openinventor.inventor.Inventor
getNativeResourceHandle
-
Field Details
-
location
Location of the source (center of the area). Default is (0, 0, 0). -
orientation
Principal orientation of illumination (normal vector of the area), defined as aSoSFRotationobject. The actual direction of illumination is the vector obtained after applying this rotation to its default (0, 0, -1) vector.See
SoSFRotationandSbRotationfor more details. -
width
Width of the area. Default is 1. -
height
Height of the area. Default is 1. -
twoSided
Two-Sided illumination. When true, this enables illumination on both sides of the area.Default is false
-
-
Constructor Details
-
SoQuadAreaLight
public SoQuadAreaLight()Creates an area light source node with default settings.
-