Apply rendering hints to the node
| <node3d>.hint( | |
| val | |
| node = '' | |
| op = viz.OP_DEFAULT |
)
val
A combination of the following values:
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. |
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. |
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.
None