IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Skin QML Type

Defines a skinning animation.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Skin QML Type

  • Import Statement: import QtQuick3D

  • Inherits:: Object3D

Detailed Description

A skin defines how a model can be animated using skeletal animation. It contains a list of Nodes and an optional list of the Inverse Bind Pose Matrices. Each Node's transform becomes a transform of the bone with the corresponding index in the list.

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

Skeleton and Joint will be deprecated.

Property Documentation

 

inverseBindPoses : List<matrix4x4>

This property contains a list of Inverse Bind Pose matrixes used for the skinning animation. Each inverseBindPose matrix means the inverse of the global transform of the corresponding node in Skin::joints, used initially.

This property is an optional property. That is, if some or all of the matrices are not set, identity values will be used.

joints : List<QtQuick3D::Node>

This property contains a list of nodes used for a hierarchy of joints. The order in the list becomes the index of the joint, which is used in the SkinSemantic custom geometry attribute.

See Also

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+