QArmature#

Used to calculate skinning transform matrices and set them on shaders. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QArmature

Synopsis#

Properties#

Functions#

Slots#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

The Armature component is aggregated by entities to give them the ability to calculate the palette of skinning transform matrices needed to properly render skinned meshes.

Each vertex in a skinned mesh is associated (bound) to up to 4 joints in a skeleton. For each joint affecting a vertex the mesh also provides a weight which determines the level of influence of the corresponding joint. The skinning palette used for performing the transformation of skinned vertices is provided by the Armature and is calculated from the joints contained in the referenced skeleton.

Updating the local transform of a joint results in the skinning matrices being recalculated and the skinned mesh vertices bound to that joint moving accordingly.

class PySide6.Qt3DCore.Qt3DCore.QArmature([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QArmature with parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DCore.Qt3DCore.QArmature.skeleton: PySide6.Qt3DCore.Qt3DCore.QAbstractSkeleton#

Holds the skeleton used to calculate the skinning transform matrix palette.

Access functions:
PySide6.Qt3DCore.Qt3DCore.QArmature.setSkeleton(skeleton)#
Parameters:

skeletonPySide6.Qt3DCore.Qt3DCore.QAbstractSkeleton

See also

skeleton()

Setter of property skeleton .

PySide6.Qt3DCore.Qt3DCore.QArmature.skeleton()#
Return type:

PySide6.Qt3DCore.Qt3DCore.QAbstractSkeleton

See also

setSkeleton()

Getter of property skeleton .

PySide6.Qt3DCore.Qt3DCore.QArmature.skeletonChanged(skeleton)#
Parameters:

skeletonPySide6.Qt3DCore.Qt3DCore.QAbstractSkeleton

Notification signal of property skeleton .