<node3d>.disable

This action will disable the given attribute of the object

 

<node3d>.disable(
    mode    
    node = ''    
    op = viz.OP_DEFAULT    

)

 

mode

The attribute to enable. Can be one of the following values or a list of the values:

Node Attributes

viz.INTERSECTION

Controls whether the node is susceptible to intersection tests, including collisions with the viewpoint.

viz.PICKING

Controls whether the node can be picked by the viz.pick command.

viz.DEPTH_WRITE

Controls whether the node is drawn to the depth buffer.

viz.COLOR_WRITE

Controls whether the node is drawn to the color buffer.

viz.RENDERING

Controls whether the node is rendered.

viz.CULLING

Controls whether frustum culling is performed on the node.

viz.LIGHTING

Controls whether lighting calculations are performed on the node during rendering.

viz.DEPTH_TEST

Controls whether depth testing is performed during rendering.

viz.CULL_FACE

Controls whether back facing geometry are culled during rendering.

viz.FOG

Controls whether fog calculations are performed during rendering.

viz.BLEND

Controls whether blending is performed during rendering.

viz.SAMPLE_ALPHA_TO_COVERAGE

Controls whether to use the alpha value as a coverage mask when multisampling is enabled.

viz.DISPLAY_LISTS

Controls whether the the geometry will use display lists to draw data.

viz.ANIMATIONS

Controls whether built-in animations should be updated

viz.EMITTERS

Controls whether particle systems will emit particles.

viz.DYNAMICS

Controls whether the object will have dynamics simulated on it when physics is enabled.

viz.CONTACTS

Controls whether the physics object will generate contact points.

viz.COLLIDE_NOTIFY

Controls whether the object will notify Vizard when it collides with another object in the physics simulation.

viz.RENDER_LEFT

Controls whether the object will be rendered to the left eye.

viz.RENDER_RIGHT

Controls whether the object will be rendered to the right eye.

viz.PHYSICS

Controls whether the object will take part in the physics simulation.

viz.POINT_SPRITE

Controls whether points will be rendered in sprite mode, allowing textures to be applied.

viz.SPECULAR_TEXTURE

Controls whether specularity will be added to textures.

viz.FLIP_POLYGON_ORDER

Controls whether the ordering of polygons is flipped.

viz.CLAMP_COLOR

Controls whether color values will be clamped between [0,1] in the vertex/fragment pipeline.

viz.FLAT_SHADING

Controls whether polygons are rendered using a single normal value, causing a flat shading effect.


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

Mode can be any valid OpenGL mode.

Return Value

None

Example

Example 1:

ball = viz.add('ball.wrl')
ball.disable(viz.INTERSECTION)



Example 2:

model = viz.add('logo.ive')
model.disable([viz.LIGHTING,viz.CULL_FACE])

See also

<node3d>.enable