QArmature Class

class Qt3DCore ::QArmature

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

頭: #include <QArmature>
qmake: QT += 3dcore
Since: Qt 5.10
實例化: Armature
繼承: Qt3DCore::QComponent

該類在 Qt 5.10 引入。

特性

公共函數

QArmature (Qt3DCore::QNode * parent = nullptr)
Qt3DCore::QAbstractSkeleton * skeleton () const

公共槽

void setSkeleton (Qt3DCore::QAbstractSkeleton * skeleton )

信號

void skeletonChanged (Qt3DCore::QAbstractSkeleton * skeleton )

詳細描述

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.

特性文檔編製

skeleton : Qt3DCore::QAbstractSkeleton *

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

訪問函數:

Qt3DCore::QAbstractSkeleton * skeleton () const
void setSkeleton (Qt3DCore::QAbstractSkeleton * skeleton )

通知程序信號:

void skeletonChanged (Qt3DCore::QAbstractSkeleton * skeleton )

成員函數文檔編製

QArmature:: QArmature ( Qt3DCore::QNode * parent = nullptr)

Constructs a new QArmature with parent .