Skin QML Type

スキニングアニメーションを定義します。詳細...

Import Statement: import QtQuick3D
Inherits:

Object3D

プロパティ

詳細説明

スキンは、スケルタルアニメーションを使ってモデルをどのようにアニメーションさせるかを定義します。スキンにはNodeのリストと、Inverse Bind Pose Matrices のリスト(オプション)が含まれます。各Node のトランスフォームは、リスト内の対応するインデックスを持つボーンのトランスフォームになります。

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

注意: SkeletonJoint は非推奨となります。

プロパティの説明

inverseBindPoses : List<matrix4x4>

このプロパティには、スキニングアニメーションに使用される Inverse Bind Pose 行列のリストが含まれます。各 inverseBindPose 行列は、最初に使用されるSkin::joints の対応するノードのグローバル変換の逆数を意味します。

注: このプロパティはオプションのプロパティです。つまり、一部またはすべての行列が設定されていない場合、同一値が使用されます。


joints : List<QtQuick3D::Node>

このプロパティには、ジョイントの階層に使用されるノードのリストが含まれます。このリストの順番がジョイントのインデックスとなり、SkinSemantic custom geometry attribute で使用されます。

注意: 値 'undefined' は無視され、存在しないノードが記述された場合、結果は予測できません。

QQuick3DGeometry::addAttribute およびQt 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.