Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.depthFunc
7.7

<node3d>.depthFunc

Sets the OpenGL depth function of the node.

<node3d>.depthFunc(  
mode  
node = ''  
op = viz.OP_DEFAULT  
)  
mode
Specifies the conditions under which the pixel will be drawn. Can be one of the following values:

Depth Function modes

viz.GL_NEVER

Never passes.

viz.GL_LESS

Passes if the incoming depth value is less than the stored depth value.

viz.GL_EQUAL

Passes if the incoming depth value is equal to the stored depth value.

viz.GL_LEQUAL

Passes if the incoming depth value is less than or equal to the stored depth value.

viz.GL_GREATER

Passes if the incoming depth value is greater than the stored depth value.

viz.GL_NOTEQUAL

Passes if the incoming depth value is not equal to the stored depth value.

viz.GL_GEQUAL

Passes if the incoming depth value is greater than or equal to the stored depth value.

viz.GL_ALWAYS

Always passes.

node = ''
Name of sub-node to apply changes to
op = viz.OP_DEFAULT
Can be viz.OP_DEFAULT to use the nodes default op mode or a combination of the following values:

Op modes

viz.OP_TRAVERSE

When performing an operation on a node, traverse the entire subgraph and process all subnodes as well. This is the default value.

viz.OP_OVERRIDE

When applying attributes, have them override attributes of subnodes.

viz.OP_ROOT

When performing an operation on the node, start at the root transform of the node, instead of the model. Processing the root will include all child Vizard nodes.

Remarks

For more information, see the OpenGL documentation for glDepthFunc.

Return Value

None