Reader small image

You're reading from  Unity 5.x Animation Cookbook

Product typeBook
Published inMay 2016
Reading LevelExpert
PublisherPackt
ISBN-139781785883910
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Maciej Szczesnik
Maciej Szczesnik
author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik

Right arrow

Using Blend Shapes to morph an object into another one


Previously, we used Blend Shapes to create face expressions. Blend Shapes are also an excellent tool for special effects. In this recipe, we will morph one object into another.

Getting ready

To follow this recipe, we need to prepare an object with Blend Shapes. We've created a really simple example in Blender—a subdivided cube with one shape key that looks like a sphere. See the following screenshot for reference:

A cube with a Blend Shape that turns it into a sphere

You can also go to the Chapter 07 Special effects\Recipe 05 Using blendshapes to morph an object into another one directory. Open the Example.unity scene there. You will see a number of cubes there. If you hit the space bar in play mode, the cubes will morph into spheres. You can find the Cuboid.fbx asset with the required Blend Shapes in the Model directory.

How to do it...

To use Blend Shapes to morph objects, follow these steps:

  1. Import the model with at least one Blend Shape...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Unity 5.x Animation Cookbook
Published in: May 2016Publisher: PacktISBN-13: 9781785883910

Author (1)

author image
Maciej Szczesnik

Not interested. Too busy with current game project. Source: Linkedin.
Read more about Maciej Szczesnik