MorphingAnimation QML Type
实现混合形状变形动画的类型。更多
Import Statement: | import Qt3D.Animation 2.9 |
In C++: | QMorphingAnimation |
Inherits: | |
Status: | Deprecated |
属性
- easing : EasingCurve
- interpolator : real
- method : enumeration
- morphTargets : list<MorphTarget>
- target : GeometryRenderer
- targetName : string
- targetPositions : list<real>
详细描述
MorphingAnimation 类型实现了目标GeometryRenderer 的混合形状变形动画。MorphingAnimation 会将正确的Attributes 从变形目标设置到目标GeometryRenderer::geometry ,并计算当前位置的插值器。属性之间的实际混合必须在材质中实现。MorphPhongMaterial 材质实现了对 phong 灯光模型的变形支持。混合发生在两个属性--"基本 "和 "目标 "之间。基本属性和目标属性的名称取自变形目标名称,其中基本属性保留已有名称,目标属性名称后附加 "Target"。动画中的所有变形目标都应包含与基本几何体相同名称的属性。
属性文档
easing : EasingCurve |
保存变形目标间插值器的缓和曲线。
interpolator : real |
保存基础属性和目标属性之间的插值器。
method : enumeration |
保存变形方法。默认为 "相对"。
- 归一化
- 相对
morphTargets : list<MorphTarget> |
保存变形动画中的变形目标列表。
target : GeometryRenderer |
保存变形动画应用的目标GeometryRenderer 。
targetName : string |
保存目标几何体的名称。这是一个方便的属性,可以更容易地将目标几何体与变形动画相匹配。该名称通常与目标GeometryRenderer 的父实体名称相同,但并非必须如此。
© 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.