VertexBlendAnimation QML Type

实现顶点混合变形动画的类型。更多

Import Statement: import Qt3D.Animation 2.9
In C++: QVertexBlendAnimation
Inherits:

AbstractAnimation

Status: Deprecated

属性

详细描述

顶点混合动画(VertexBlendAnimation)类型实现了与目标GeometryRenderer 的顶点混合变形动画。VertexBlendAnimation 会将正确的Attributes 从变形目标设置到目标GeometryRenderer::geometry ,并计算当前位置的插值器。与使用混合权重控制混合的MorphingAnimation 不同,混合发生在连续的变形目标之间。属性之间的实际混合必须在材料中实现。MorphPhongMaterial 为 phong 灯光模型实现了支持变形的材质。混合发生在两个属性--"基本 "和 "目标 "之间。基本属性和目标属性的名称取自变形目标名称,其中基本属性保留已有名称,目标属性名称后附加 "Target"。动画中的所有变形目标都应包含与基本几何体相同名称的属性。

属性文档

interpolator : real [read-only]

保存基础属性和目标属性之间的插值器。


morphTargets : list<MorphTarget>

持有添加到动画中的morph targets 的列表。


target : GeometryRenderer

保存变形动画应用的目标GeometryRenderer


targetName : string

保存目标几何体的名称。这是一个方便的属性,可以更容易地将目标几何体与变形动画相匹配。该名称通常与目标GeometryRenderer 的父实体名称相同,但并非必须如此。


targetPositions : list<real>

保存变形目标的位置值。列表中的每个位置都指定了具有相同索引的相应变形目标的位置。这些值必须以升序排列。数值可以是正数或负数,没有预定义单位。


© 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.