public class SoDepthBuffer extends SoNode
It can also be used to clear the depth buffer by setting the clearBuffer
field to true.
Limitations:
SoDepthBuffer
sets the OpenGL depth buffer test function to LESS. (Meaning that only fragments with a depth value strictly less than the current depth buffer value will be rendered.) This is NOT the same as the Open Inventor default. SoGradientBackground
, will not work correctly with the depth buffer test function set to LESS.
File format/default:
DepthBuffer {
test | true |
write | true |
function | LESS |
range | (0.0,1.0) |
clearBuffer | false |
Action behavior:
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoDepthBuffer.DepthWriteFunctions
Depth function mode as defined by OpenGL.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
ALWAYS
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.ALWAYS instead. |
SoSFBool |
clearBuffer
If true, the depth buffer is cleared when the node is traversed (glClear(GL_DEPTH_BUFFER_BIT)).
|
static int |
EQUAL
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.EQUAL instead. |
SoSFEnum<SoDepthBuffer.DepthWriteFunctions> |
function
Depth comparison function to use (glDepthFunc).
|
static int |
GEQUAL
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.GEQUAL instead. |
static int |
GREATER
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.GREATER instead. |
static int |
LEQUAL
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.LEQUAL instead. |
static int |
LESS
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.LESS instead. |
static int |
NEVER
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.NEVER instead. |
static int |
NOTEQUAL
Deprecated.
Use
SoDepthBuffer.DepthWriteFunctions.NOTEQUAL instead. |
SoSFVec2f |
range
Value range for the depth buffer (glDepthRange).
|
SoSFBool |
test
Enable depth buffer testing (glEnable).
|
SoSFBool |
write
Enable depth buffer writing (glDepthMask).
|
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoDepthBuffer()
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
@Deprecated public static final int NEVER
SoDepthBuffer.DepthWriteFunctions.NEVER
instead.@Deprecated public static final int LESS
SoDepthBuffer.DepthWriteFunctions.LESS
instead.@Deprecated public static final int EQUAL
SoDepthBuffer.DepthWriteFunctions.EQUAL
instead.@Deprecated public static final int LEQUAL
SoDepthBuffer.DepthWriteFunctions.LEQUAL
instead.@Deprecated public static final int GREATER
SoDepthBuffer.DepthWriteFunctions.GREATER
instead.@Deprecated public static final int NOTEQUAL
SoDepthBuffer.DepthWriteFunctions.NOTEQUAL
instead.@Deprecated public static final int GEQUAL
SoDepthBuffer.DepthWriteFunctions.GEQUAL
instead.@Deprecated public static final int ALWAYS
SoDepthBuffer.DepthWriteFunctions.ALWAYS
instead.public final SoSFBool test
Note that disabling depth testing will prevent the depth buffer from being updated even if depth buffer writing is set to true.
public final SoSFBool write
public final SoSFEnum<SoDepthBuffer.DepthWriteFunctions> function
public final SoSFVec2f range
public final SoSFBool clearBuffer
SoViewportClipping
node. Default is false.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com