public class SoLightModel extends SoNode
model
field.
Lighting is enabled by default (default model is PER_VERTEX_PHONG). When lighting is enabled, there must be light nodes (e.g. SoDirectionalLight
) in the scene graph for objects to be easily visible. When using the Open Inventor viewer classes (e.g. SoWinExaminerViewer
), the viewer will create a "headlight" (directional light attached to the camera) if no other light nodes exist when setSceneGraph() is called. When using the Open Inventor viewer components (e.g. SceneExaminer), a "headlight" is automatically added to the scene graph.
An SoEnvironment
node can be used to specify additional options related to lighting:
SoPointLight
and SoSpotLight
nodes.
When model
is set to BASE_COLOR, the lighting computation is disabled for subsequent shapes. This can be useful for annotation, data visualization and other special cases.
By default, lighting is only computed for the "front" faces of geometry, so the back face of the geometry will be dark. The front face is determined by the normal vector, if specified, or by the vertex ordering (see SoShapeHints
) if normals are computed by Open Inventor. To enable "two sided" lighting (lighting both front and back faces) see SoShapeHints
.
VolumeViz:
SoLightModel
controls lighting for most VolumeViz shapes, but
not for SoVolumeRender
. Lighting for volume rendering is controlled by the SoVolumeRenderingQuality
node.
SoOrthoSlice
.
File format/default:
LightModel {
model | PER_PIXEL_PHONG |
Action behavior:
SoGLRenderAction
, SoCallbackAction
Sets the current lighting model in the state.
See also:
SoBaseColor
, SoEnvironment
, SoDirectionalLight
, SoLight
, SoPointLight
, SoMaterial
, SoSpotLight
Modifier and Type | Class and Description |
---|---|
static class |
SoLightModel.Models
Lighting model.
|
SoNode.RenderModes
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFEnum<SoLightModel.Models> |
model
Lighting model to use .
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoLightModel()
Creates a light model node with default settings.
|
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, write
copyFieldValues, copyFieldValues, enableNotify, fieldsAreEqual, get, getAllFields, getEventIn, getEventOut, getField, getFieldName, hasDefaultValues, isNotifyEnabled, set, setToDefaults
dispose, getName, isDisposable, isSynchronizable, setName, setSynchronizable
getNativeResourceHandle
public final SoSFEnum<SoLightModel.Models> model
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com