MorphTarget QML Type
Definisce le proprietà di un morph target. Per saperne di più...
| Import Statement: | import QtQuick3D |
| Inherits: |
Proprietà
- attributes : enumeration
- weight : real
Descrizione dettagliata
Ogni MorphTarget è un target di morphing per un'animazione dei vertici. Il grado di morphing viene controllato modificando la proprietà weight.
MorphTarget {
id: morphtarget0
attributes: MorphTarget.Position | MorphTarget.Normal
weight: 0.5
}L'esempio di morphing illustra come utilizzare un morph target.
Documentazione delle proprietà
attributes : enumeration
Specifica l'insieme degli attributi del morph target corrente. Per poter animare gli attributi dei vertici durante il morphing, la mesh deve contenere tali attributi di destinazione e il morph target deve avere gli attributi abilitati.
Gli attributi di un bersaglio di morphing vengono specificati combinando con l'operazione OR i seguenti valori:
| Costante | Descrizione |
|---|---|
MorphTarget.Position | anima le posizioni dei vertici |
MorphTarget.Normal | anima i vettori normali |
MorphTarget.Tangent | anima i vettori tangenti |
MorphTarget.Binormal | anima i vettori binormali |
MorphTarget.TexCoord0 | anima i vettori delle coordinate di texture 0 |
MorphTarget.TexCoord1 | anima i vettori delle coordinate di texture 1 |
MorphTarget.Color | anima i vettori del colore dei vertici |
weight : real
Specifica il peso del target di morphing corrente. Il peso è il fattore di moltiplicazione utilizzato dall'interpolazione lineare. Un peso pari a 1 indica che questo target viene applicato integralmente. Un peso pari a 0 indica che non ha alcuna influenza.
© 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.