public class SoEnvironment extends SoNode
Ambient lighting is the amount of extra light impinging on each surface point when the lighting model is Phong (see SoLightModel
).
Light attenuation affects all subsequent lights in a scene (see SoLight
). It is a quadratic function of distance from a light source to a surface point. The three coefficients are specified in the attenuation
field. Attenuation works only for light sources with a fixed location, such as point and spot lights.
Fog has one of four types, each of which blends each surface point with the specified fog color. Each type interprets the fogVisibility
field to be the distance at which fog totally obscures objects. A fogVisibility value of 0 (the default) causes the SoEnvironment
node to set up fog so that the visibility is the distance to the far clipping plane of the current camera. Using a fog of type HAZE results in a linear fog between the fogStart
value and the fogVisibility
value.
Note that this node has effect only during rendering.
File format/default:
Environment {
ambientIntensity | 0.2 |
ambientColor | 1 1 1 |
attenuation | 0 0 1 |
fogType | NONE |
fogColor | 1 1 1 |
fogStart | 0 |
fogVisibility | 0 |
Action behavior:
SoGLRenderAction
Sets the current environment parameters to those specified with this node. Successive geometries will be rendered using this environment. Sets: SoEnvironmentElement
, SoLightAttenuationElement
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoEnvironment.FogTypes
Type of fog.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
SoSFColor |
ambientColor
RGB color of ambient lighting (for Phong lighting).
|
SoSFFloat |
ambientIntensity
Intensity of ambient lighting (for Phong lighting).
|
SoSFVec3f |
attenuation
Squared, linear, and constant light attenuation coefficients (in that order) with respect to distance of light from surface (for Phong lighting).
|
static int |
FOG
Deprecated.
Use
SoEnvironment.FogTypes.FOG instead. |
SoSFColor |
fogColor
Fog color.
|
SoSFFloat |
fogStart
Distance at which the linear fog HAZE starts to be applied.
|
SoSFEnum<SoEnvironment.FogTypes> |
fogType
Type of fog.
|
SoSFFloat |
fogVisibility
Fog visibility distance, which is the distance at which fog totally obscures objects.
|
static int |
HAZE
Deprecated.
Use
SoEnvironment.FogTypes.HAZE instead. |
static int |
NONE
Deprecated.
Use
SoEnvironment.FogTypes.NONE instead. |
static int |
SMOKE
Deprecated.
Use
SoEnvironment.FogTypes.SMOKE instead. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoEnvironment()
Creates an environment node with default settings.
|
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
@Deprecated public static final int NONE
SoEnvironment.FogTypes.NONE
instead.@Deprecated public static final int HAZE
SoEnvironment.FogTypes.HAZE
instead.@Deprecated public static final int FOG
SoEnvironment.FogTypes.FOG
instead.@Deprecated public static final int SMOKE
SoEnvironment.FogTypes.SMOKE
instead.public final SoSFFloat ambientIntensity
public final SoSFColor ambientColor
public final SoSFVec3f attenuation
public final SoSFEnum<SoEnvironment.FogTypes> fogType
public final SoSFColor fogColor
public final SoSFFloat fogStart
public final SoSFFloat fogVisibility
SoEnvironment
node to set up fog so that the visibility is the distance to the far clipping plane of the current camera.Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com