Vizard 8 » Command Index » Vizard objects » node3d » <node3d>.hint
8.0

<node3d>.hint

Apply rendering hints to the node

<node3d>.hint(  
flag  
node = ''  
op = viz.OP_DEFAULT  
)  
flag
A combination of the following hint flags:

Hint flags

viz.PARTICLE_HINT

Check node for particles.

viz.VBO_HINT

Render geometry using OpenGL VBOs, if possible.

viz.COMPRESS_TEXTURE_HINT

Compress all textures.

viz.FREE_TEXTURE_MEMORY_HINT

Free local texture memory that has been uploaded to the graphics card.

viz.ALLOW_NPOT_TEXTURE_HINT

Allow non-power-of-two textures, if supported by the graphics card.

viz.PRELOAD_HINT

Preload OpenGL objects to the graphics card (i.e. textures, display lists, etc..)

viz.RESET_ANIMATION_HINT

Reset built-in animations of models.

viz.CLEAR_PARTICLES_HINT

Clear all emitted particles.

viz.OPTIMIZE_INTERSECT_HINT

Enable fast intersection tests on the node by building a kd-tree structure for the underlying vertex data. This hint can significantly increase memory usage.

viz.COPY_SHARED_MATERIAL_HINT

Find all nodes that share the same material, and assign each a copy of the material. This allows individual changes to each node, without affecting the other nodes that shared the same material.

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

This command notifies Vizard to perform special rendering hints on the node. When a model is loaded Vizard will apply the hint specified with the 'viz.model.hint' option.

Return Value

None

See also

<node3d>.hasparticles