Skin QML Type

定义换肤动画。更多

Import Statement: import QtQuick3D
Inherits:

Object3D

属性

详细说明

皮肤定义了如何使用骨骼动画制作模型的动画。它包含一个Nodes 列表和一个可选的反向绑定姿势矩阵列表。每个Node 的变换都将成为列表中具有相应索引的骨骼的变换。

Skin {
    id: skin0
    joints: [
        node0,
        node1,
        node2
    ]
    inverseBindPoses: [
        Qt.matrix4x4(...),
        Qt.matrix4x4(...),
        Qt.matrix4x4(...)
    ]
}

注: SkeletonJoint 将被弃用。

属性文档

inverseBindPoses : List<matrix4x4>

该属性包含用于绘制蒙皮动画的反向绑定姿势矩阵列表。每个 inverseBindPose 矩阵指的是Skin::joints 中相应节点的全局变换的逆矩阵,初始时使用。

注: 此属性为可选属性。也就是说,如果未设置部分或全部矩阵,则将使用同一值。


joints : List<QtQuick3D::Node>

该属性包含用于关节层次结构的节点列表。列表中的顺序将成为关节的索引,在SkinSemantic custom geometry attribute 中使用。

注意: "未定义 "值将被忽略,如果描述了一个不存在的节点,结果将无法预测。

另请参阅 QQuick3DGeometry::addAttributeQt Quick 3D - 简单蒙皮示例


© 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.