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

<node3d>.zoffset

Sets the zoffset of the node.

<node3d>.zoffset(  
factor = -1  
units = 0  
node = ''  
op = viz.OP_DEFAULT  
)  
factor = -1
Specifies a scale factor that is used to create a variable depth offset for each polygon
units = 0
Is multiplied by an implementation-specific value to create a constant depth offset.
node = ''
The sub-node to apply the offset 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

This command will apply a depth offset to the rendered polygons. This command is useful when overlaying decals or lines over existing polygons. It helps reduce the z-fighting artifacts.

Return Value

None