在unity3d中实现网格动画的快捷方法:UnityMorph(转,老外开发的一个接口资源包)

uke 的头像

暂时还没搞明白实现的思路,好像是UV动画?不过确实蛮快捷的。

I've mentioned before in scripting that i was working on a way to easily animate a mesh in Unity (what's Unity3D?), and... it is done! How this works?

  • You make your mesh just like normal, building, setting UV texturing, Even boning and animating.
  • You then make a copy of the base neutral mesh and reshape it so what you need. (normal face into a smiling face)
  • You then use the blender script to make a color Diff map in the vertex color data of the mesh, and then using baking to render that into a UV texture.
  • Do this for each new shape.

Then, you...

  • Now, you copy those diff maps into Unity, with the base mesh (either a static mesh or an animated character).
  • Drop the Morph API script into your model, and make a script to send morph animation commands to it remotely.

The above is missing a lot of steps, but I just got this demo done today, so I'm a bit tired. More details coming soon! The Unity file includes the Blender meshes so you can see how some of it was done and experiment. And the results? See here:

附件中有资源包文件下载,具体效果可直接找开源文件查看!

解压密码为:unity3d8.com

附件下载

Tags:

评论

Member since:
7 九月 2009
Last activity:
16 小时 29 分钟

解压密码为:unity3d8.com