InstancedNode
from panda3d.core import InstancedNode
- class InstancedNode
Bases:
Bases:
PandaNode
This is a special node that instances its contents using a list of transforms that get applied on top of the node’s own transform. This is a bit more limited than the regular instance_to mechanism, but it is a better choice for hardware instancing.
For best performance, it is highly recommended to flatten the nodes under this (by calling flatten_strong()), since culling will not be performed for individual sub-nodes under each instance.
New in version 1.11.0.
Inheritance diagram
- static get_class_type() TypeHandle
- property instances PointerTo_InstanceList
- Getter
Returns the list of instances.
Don’t call this in a downstream thread unless you don’t mind it blowing away other changes you might have recently made in an upstream thread.
- Setter
Entirely replaces the list of instances with the given list.
Don’t call this in a downstream thread unless you don’t mind it blowing away other changes you might have recently made in an upstream thread.