Qt3DCore::QArmature Class
class Qt3DCore::QArmature用于计算着色变换矩阵并将其设置到着色器上。更多
头文件: | #include <QArmature> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3DCore) target_link_libraries(mytarget PRIVATE Qt6::3DCore) |
qmake: | QT += 3dcore |
在 QML 中: | Armature |
继承: | Qt3DCore::QComponent |
状态: | 已废弃 |
属性
- skeleton : Qt3DCore::QAbstractSkeleton*
公共功能
公共插槽
void | setSkeleton(Qt3DCore::QAbstractSkeleton *skeleton) |
信号
void | skeletonChanged(Qt3DCore::QAbstractSkeleton *skeleton) |
详细说明
衔铁组件由实体聚合而成,使它们能够计算正确渲染蒙皮网格所需的蒙皮变换矩阵调色板。
蒙皮网格中的每个顶点都与骨架中最多 4 个关节相关联(绑定)。对于影响顶点的每个关节,网格还提供了一个权重,该权重决定了相应关节的影响程度。用于执行蒙皮顶点变换的蒙皮调色板由 "纟 "提供,并通过引用骨架中包含的关节计算得出。
更新关节的局部变换会导致重新计算蒙皮矩阵,绑定到该关节的蒙皮网格顶点也会相应移动。
属性文档
skeleton : Qt3DCore::QAbstractSkeleton*
保存用于计算蒙皮转换矩阵调色板的骨架。
访问功能:
Qt3DCore::QAbstractSkeleton * | skeleton() const |
void | setSkeleton(Qt3DCore::QAbstractSkeleton *skeleton) |
Notifier 信号:
void | skeletonChanged(Qt3DCore::QAbstractSkeleton *skeleton) |
成员函数 文档
[explicit]
QArmature::QArmature(Qt3DCore::QNode *parent = nullptr)
用parent 构建一个新的 QArmature。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.