aboutsummaryrefslogtreecommitdiffstats
path: root/doc/qtdesignstudio/src/qtquick3d-editor/studio-skeletal-components.qdoc
blob: bf1a922752bc77bc3e462fb024ffc3b415f5a0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
    \page studio-skeletal-components.html
    \previouspage studio-3d-instancing.html
    \nextpage studio-3d-model.html

    \title Skeletal Animation

    Skeletal animation is a technique used in computer animation. In skeletal
    animation, a character is represented in the form of a surface representation
    (skin or mesh), and a skeleton. This portrays how the character can move,
    inspired by how a physical skeleton works for vertebrates. The "bones" of the
    skeleton are represented by a hierarchy of joint nodes.

    The normal workflow is to use an external content creation tool to define
    the skeleton and the skin (this is sometimes also referred to as rigging),
    and import them to \QDS. You can then create skeletal animations using
    \uicontrol Skeleton and \uicontrol Joint components available in
    \uicontrol Components > \uicontrol {Qt Quick 3D} > \uicontrol {Qt Quick 3D}.

    \section1 Skeleton

    A \uicontrol Skeleton component determines a skeletal animation hierarchy
    and defines how a model can be animated using skeletal animation.
    It contains a hierarchy of \uicontrol Joint nodes. Each joint can be
    transformed for a skinning animation.

    \section1 Joint

    A \uicontrol Joint defines a node in a skeletal animation hierarchy
    and functions similarly to joints between bones in a human skeleton.
    It is a transformable node that must be contained inside a
    \uicontrol Skeleton component.

    Define properties for \uicontrol Joint components in \uicontrol Properties
    > \uicontrol Joint.

    \image studio-3d-joint-properties.png "Joint properties in the Properties view"

    Use the \uicontrol Index property to define the index of this joint.
    This index value is used in the \uicontrol {Joint semantic} custom geometry
    attribute.

    \note The \uicontrol Index values must be unique within the same
    \uicontrol Skeleton.

    Use the \uicontrol {Skeleton root} property to define the \uicontrol Skeleton
    that contains the \uicontrol Joint. Do note that all the \uicontrol Joints
    in the \uicontrol Skeleton must have the same \uicontrol {Skeleton root}
    for the animation to work properly.
*/