OccluderNode
from panda3d.core import OccluderNode
- class OccluderNode
Bases:
PandaNode
A node in the scene graph that can hold an occluder polygon, which must be a rectangle. When the occluder is activated with something like render.set_occluder(), then objects whose bouding volume lies entirely behind the occluder will not be rendered.
Inheritance diagram
- __init__(*args, **kwargs)
- double_sided
- getClassType()
C++ Interface: get_class_type()
- getMinCoverage()
C++ Interface: get_min_coverage(const OccluderNode self)
- /**
Returns the minimum screen coverage.
*/
- getNumVertices()
C++ Interface: get_num_vertices(OccluderNode self)
- /**
Returns the number of vertices in the occluder polygon. This should always
return 4.
*/
- getVertex()
C++ Interface: get_vertex(OccluderNode self, int n)
- /**
Returns the nth vertex of the occluder polygon.
*/
- getVertices()
- get_class_type()
C++ Interface: get_class_type()
- get_min_coverage()
C++ Interface: get_min_coverage(const OccluderNode self)
- /**
Returns the minimum screen coverage.
*/
- get_num_vertices()
C++ Interface: get_num_vertices(OccluderNode self)
- /**
Returns the number of vertices in the occluder polygon. This should always
return 4.
*/
- get_vertex()
C++ Interface: get_vertex(OccluderNode self, int n)
- /**
Returns the nth vertex of the occluder polygon.
*/
- get_vertices()
- isDoubleSided()
C++ Interface: is_double_sided(const OccluderNode self)
- /**
Is this occluder double-sided
*/
- is_double_sided()
C++ Interface: is_double_sided(const OccluderNode self)
- /**
Is this occluder double-sided
*/
- min_coverage
- setDoubleSided()
C++ Interface: set_double_sided(const OccluderNode self, bool value)
- /**
If true, the back-face will also be used to occlude
*/
- setMinCoverage()
C++ Interface: set_min_coverage(const OccluderNode self, float value)
- /**
Minimum screen coverage needed before occluder used. Range should be 0 to
For example, setting to 0.2 would mean that the occluder needs to cover
20% of the screen to be considered.
*/
- setVertex()
C++ Interface: set_vertex(const OccluderNode self, int n, const LPoint3f v)
- /**
Sets the nth vertex of the occluder polygon.
*/
- setVertices()
C++ Interface: set_vertices(const OccluderNode self, const LPoint3f v0, const LPoint3f v1, const LPoint3f v2, const LPoint3f v3)
- /**
Replaces the four vertices of the occluder polygon. The vertices should be
defined in a counterclockwise orientation when looking at the face of the
occluder.
*/
- set_double_sided()
C++ Interface: set_double_sided(const OccluderNode self, bool value)
- /**
If true, the back-face will also be used to occlude
*/
- set_min_coverage()
C++ Interface: set_min_coverage(const OccluderNode self, float value)
- /**
Minimum screen coverage needed before occluder used. Range should be 0 to
For example, setting to 0.2 would mean that the occluder needs to cover
20% of the screen to be considered.
*/
- set_vertex()
C++ Interface: set_vertex(const OccluderNode self, int n, const LPoint3f v)
- /**
Sets the nth vertex of the occluder polygon.
*/
- set_vertices()
C++ Interface: set_vertices(const OccluderNode self, const LPoint3f v0, const LPoint3f v1, const LPoint3f v2, const LPoint3f v3)
- /**
Replaces the four vertices of the occluder polygon. The vertices should be
defined in a counterclockwise orientation when looking at the face of the
occluder.
*/
- vertices