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) |
详细说明
Armature 组件由实体聚合而成,使其能够计算出正确渲染蒙皮网格所需的蒙皮变换矩阵集。
骨骼绑定网格中的每个顶点都与骨骼中的最多 4 个关节相关联(绑定)。 对于每个影响顶点的关节,网格还提供了一个权重,用于确定相应关节的影响程度。用于执行蒙皮顶点变换的蒙皮调色板由 Armature 提供,并根据引用的骨骼中包含的关节计算得出。
更新关节的局部变换会导致重新计算蒙皮矩阵,并与该关节绑定的蒙皮网格顶点随之移动。
属性文档
skeleton : Qt3DCore::QAbstractSkeleton*
存储用于计算蒙皮变换矩阵调色板的骨骼。
访问函数:
| Qt3DCore::QAbstractSkeleton * | skeleton() const |
| void | setSkeleton(Qt3DCore::QAbstractSkeleton *skeleton) |
通知信号:
| void | skeletonChanged(Qt3DCore::QAbstractSkeleton *skeleton) |
© 2026 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.