Morphing Animation(变形动画)

Morphing Animation

变形动画

Introduction

介绍

Morphing animation (also known as vertex animation) is a way to simulate deformations of soft materials. It transforms one shape smoothly into another. This is done by creating a mesh that contains multiple positions for each vertex. Each additional set of positions defines a shape, called a morph target. When animating, a weight is assigned to each target. The effective position of each vertex is calculated by linear interpolation between the positions for that target, according to the weights.

​变形动画(也称为顶点动画)是一种模拟软材料变形的方法。它将一种形状平滑地转换为另一种形状。这是通过创建一个包含每个顶点多个位置的网格来实现的。每增加一组位置就定义一个形状,称为变形目标。制作动画时,为每个目标分配一个权重。根据权重,通过该目标位置之间的线性插值来计算每个顶点的有效位置。

Morphing differs from skeletal animation where we create an imagined skeleton, and rig the model by defining the relationship between each vertex of the model and the nodes of that skeleton.

​变形不同于骨架动画,在骨架动画中,我们创建一个想象的骨架,并通过定义模型的每个顶点与该骨架的节点之间的关系来装配模型。

Note that the fundamental structure of each morph target must be the same: If three vertices form a triangle in the base model, they will form a triangle in all the morph targets. The triangle can have a completely different position, orientation, and size; or it can even be effectively removed by making it a degenerate triangle with size zero.

请注意,每个变形目标的基本结构必须相同:如果三个顶点在基础模型中形成三角形,它们将在所有变形目标中形成三角形。三角形可以有完全不同的位置、方向和大小;或者甚至可以通过使其成为大小为零的退化三角形来有效地去除它。

In most cases, the mesh will be created by an external tool, and imported using the Balsam asset import tool. For example, in the Blender 3D editor, morph targets are called "shape keys", and in Autodesk Maya they are called "blend shapes".

​在大多数情况下,网格将由外部工具创建,并使用Balsam资产导入工具导入。例如,在Blender 3D编辑器中,变形目标称为“形状键”,在Autodesk Maya中,它们称为“混合形状”。

The morphing example shows how to control the weights of a model imported from Blender.

​变形示例显示了如何控制从Blender导入的模型的权重。

The custom morphing animation example shows how to create a morph target in C++ by subclassing QQuick3DGeometry.

​自定义变形动画示例展示了如何在C++中通过子类化QQuick3DGeometry创建变形目标。

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值