Apply rendering hints to the node
<node3d>.hint( | |
flag | |
node = '' | |
op = viz.OP_DEFAULT | |
) |
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. |
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. |