SpotLight
SpotLight is a light source that illuminates geometry within a conical beam Light illuminates all geometry and is not scoped by scene graph hierarchy Lights have no visible shape themselves and shine through occluding geometry. Hint: HeadLight is controlled by NavigationInfo.
Inheritance
Code
XML encoding
<SpotLight attenuation='1 0 0' beamWidth='1.570796' cutOffAngle='0.785398' direction='0 0 -1' location='0 0 0' radius='100' global='TRUE' ambientIntensity='0' color='1 1 1' intensity='1' showProxyGeometry='FALSE' proxyGeometrySize='1 1 1' shadowIntensity='0' on='TRUE' logFeature='' />
Classic encoding
SpotLight {
attenuation 1 0 0
beamWidth 1.570796
cutOffAngle 0.785398
direction 0 0 -1
location 0 0 0
radius 100
global TRUE
ambientIntensity 0
color 1 1 1
intensity 1
showProxyGeometry FALSE
proxyGeometrySize 1 1 1
shadowIntensity 0
on TRUE
logFeature [""]
}
Interface
Filter: X3D only | Avalon only | All
| id | Name | DataType | PartType | Default | ValueType | Description |
|---|---|---|---|---|---|---|
| attenuation | SFVec3f | inputOutput | 1 0 0 | Constant, linear-distance and squared-distance dropoff factors. | ||
| beamWidth | SFFloat | inputOutput | 1.570796 | (NOT IMPLEMENTED YET) Inner solid angle (in radians) where light source has uniform full intensity if beamWidth greater then; cutOffAngle, beamWidth reset to equal cutOffAngle. | ||
| cutOffAngle | SFFloat | inputOutput | 0.785398 | Outer solid angle (in radians) where light source intensity becomes zero if beamWidth greater then; cutOffAngle, beamWidth reset to equal cutOffAngle. | ||
| direction | SFVec3f | inputOutput | 0 0 -1 | Orientation of light relative to local coordinate system. | ||
| location | SFVec3f | inputOutput | 0 0 0 | Position of light relative to local coordinate system. | ||
| radius | SFFloat | inputOutput | 100 | (NOT IMPLEMENTED YET) Maximum effective distance of light relative to local light position, affected by ancestor scaling. | ||
| global | SFBool | inputOutput | TRUE | indicates if the light is global (influences all elements in the scene) or local (only the childs of the parent node) | ||
| ambientIntensity | SFFloat | inputOutput | 0 | [0, 1] | Brightness of ambient (nondirectional background) emission from the light. | |
| color | SFColor | inputOutput | 1 1 1 | color of light, applied to colors of objects. | ||
| intensity | SFFloat | inputOutput | 1 | [0, 1] | Brightness of direct emission from the light. | |
| showProxyGeometry | SFBool | inputOutput | FALSE | toggle geometry at light position (use for visual debugging) | ||
| proxyGeometrySize | SFVec3f | inputOutput | 1 1 1 | scales proxy geometry | ||
| shadowIntensity | SFFloat | inputOutput | 0 | [0, 1] | intensity of the shadow; 0 is no shadow at all | |
| on | SFBool | inputOutput | TRUE | Enables/disables this effector (e.g. light) | ||
| logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
| metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element |
