Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.renderToBackground
8.1

<node3d>.renderToBackground

Render the node to the background

<node3d>.renderToBackground(  
order = 9  
node = ''  
)  
order = 9
The draw order. Defaults to after opaque objects (0), but before transparent objects (10).
node = ''
Name of sub-node to apply changes to

Remarks

This command is a shortcut for setting the node to render to the background. It is useful for simulating infinitely far geometry (i.e. skydome, skybox). It will render the node to the back of the depth buffer and disable adjusting of automatic clip planes in order to preserve depth buffer precision. The draw order will also be modified so the node is rendered after opaque objects, but before transparent objects, which helps reduce overdraw.

It is equivalent to performing the following operations on the node:

node.depthRange(1, 1)
node.depthFunc(viz.GL_LEQUAL)
node.disable(viz.DEPTH_WRITE)
node.disable(viz.ADJUST_AUTO_CLIP)
node.drawOrder(9, op=viz.OP_ROOT)

Return Value

None

See also

<node3d>.depthFunc
<node3d>.depthRange
<node3d>.disable
<node3d>.drawOrder