内容表

上一话题

Qt3DCore.QAbstractSkeleton

下一话题

Qt3DCore.QAspectEngine

Qt3DCore.QArmature

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

Inheritance diagram of PySide2.Qt3DCore.Qt3DCore.QArmature

New in version 5.10.

概要

函数

信号

详细描述

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 PySide2.Qt3DCore.Qt3DCore. QArmature ( [ parent=None ] )
param parent

QNode

构造新 QArmature with parent .

PySide2.Qt3DCore.Qt3DCore.QArmature. setSkeleton ( skeleton )
参数

skeleton QAbstractSkeleton

另请参阅

skeleton()

PySide2.Qt3DCore.Qt3DCore.QArmature. skeleton ( )
返回类型

QAbstractSkeleton

另请参阅

setSkeleton()

PySide2.Qt3DCore.Qt3DCore.QArmature. skeletonChanged ( skeleton )
参数

skeleton QAbstractSkeleton