MorphingAnimation QML Type
一种实现混合形状变形动画的类型。更多内容...
| Import Statement: | import Qt3D.Animation 2.12 |
| In C++: | QMorphingAnimation |
| Inherits: | |
| Status: | Technology preview |
此类型处于技术预览阶段,内容可能会有变动。
属性
- easing : EasingCurve
- interpolator : real
- method : enumeration
- morphTargets : list<MorphTarget>
- target : GeometryRenderer
- targetName : string
- targetPositions : list<real>
详细说明
MorphingAnimation 类型实现了将混合形状(blend-shape)变形动画应用到目标 Phong 材质(GeometryRenderer )的功能。MorphingAnimation 会根据变形目标(morph targets)设置正确的 Phong 材质坐标(Attributes )至目标 Phong 材质(GeometryRenderer::geometry ),并计算当前位置的插值器。属性之间的实际混合必须在材质中实现。 MorphPhongMaterial 实现了一种支持变形的 Phong 光照模型材质。混合发生在两个属性之间——“base”和“target”。base 和 target 属性的名称取自变形目标的名称,其中 base 属性保留其原有名称,而 target 属性的名称则在原名后附加“Target”。 动画中的所有形态目标都应包含与基础几何体中属性名称相同的属性。
属性文档
easing : EasingCurve
保存插值器在形态目标之间的平滑曲线。
interpolator : real [read-only]
保存基属性与目标属性之间的插值器。
method : enumeration
存储变形方法。默认值为“相对”。
- 归一化
- 相对
morphTargets : list<MorphTarget>
存储变形动画中的变形目标列表。
target : GeometryRenderer
保存要应用变形动画的目标 GeometryRenderer。
targetName : string
存储目标几何体的名称。这是一个便利属性,可帮助更轻松地将目标几何体与变形动画进行匹配。该名称通常与目标 GeometryRenderer 的父实体名称相同,但并非必须如此。
targetPositions : list<real>
保存变形目标的位置值。列表中的每个位置指定了具有相同索引的对应变形目标的位置。这些值必须按升序排列。值可以是正数或负数,且没有预定义的单位。
© 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.