Skin QML Type
定义一个蒙皮动画。更多...
| Import Statement: | import QtQuick3D |
| Inherits: |
属性
- inverseBindPoses : List<matrix4x4>
- joints : List<QtQuick3D::Node>
详细说明
皮肤定义了如何使用骨骼动画对模型进行动画处理。它包含一个Node列表以及一个可选的逆绑定姿势矩阵列表。每个Node 的变换将转化为列表中对应索引的骨骼的变换。
Skin {
id: skin0
joints: [
node0,
node1,
node2
]
inverseBindPoses: [
Qt.matrix4x4(...),
Qt.matrix4x4(...),
Qt.matrix4x4(...)
]
}属性文档
inverseBindPoses : List<matrix4x4>
该属性包含用于蒙皮动画的“逆绑定姿势”矩阵列表。每个“逆绑定姿势”矩阵即表示Skin::joints 中相应节点全局变换的逆矩阵,该全局变换在初始时被使用。
注意:此 属性为可选属性。也就是说,如果部分或全部矩阵未设置,则将使用单位矩阵。
joints : List<QtQuick3D::Node>
该属性包含一个用于关节层次结构的节点列表。列表中的顺序即为关节的索引,该索引用于SkinSemantic custom geometry attribute 。
注意:值“undefined ”将被忽略;若描述了一个不存在的节点,结果将不可预测。
© 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.