Blender教程:Blender到Unity材质与动画
2017-12-31 本文已影响153人
f41af751bacf
材质&动画
设置材质属性应该在Unity中完成,而不是在Blender中进行。

在Blender中我们要做些什么呢?
- 添加漫射颜色
- 定义材料名称
- 设置每个面材料赋值
(箱子建模这里就不介绍如何建模了哈~如果刚入门小伙伴想知道建模步骤,可留言)
为箱子添加材质
定义箱子基础材质颜色:Metal_gold

定义箱子内嵌部分材质颜色:Wood
Ctrl+E —> Edge Split
Edge split将会分割我们之前选择的边缘
L (物体编辑模式下)
基于当前鼠标悬停选择链接的子对象
快捷键P
选中需要分离的模型部(如下图所示,选中整个箱子盖),进行物体分离

完成3D模型
选中箱盖和箱身体的那条接缝边
在Edit Mode下,Shift+S,将光标吸附到这条边上
切换到物体模式下,Set Origin—>Origin to 3D Cursor

宝箱盖子动态效果
在物体模式下
快捷键R,键Y(Y轴方向),进行盖子的翻转,见下方动图所示

在导入Unity之前,各局部的物体的名称,需要在Blender中更改好
Blender中创建动画帧

在Blender中,应该从第一帧开始你的动画,而不是零
在Blender的第1帧将在Unity中被命名为0;
在Blender中,第0帧不会被导出到Unity中
在Blender中的第1帧将会被转换成Unity 0

Dope Sheet 动画摄影表
在当前帧插入一个关键帧,我们可以按下然后选择旋转Rotation
在最底部获得第一帧
上面的另外三个关键帧,只是简单的关键帧,显示了他们的后代所发生的事情
因此,如果我们在一个对象中创建一个关键帧它也会显示在它的层次结构上

在Blender中设置21帧,在Unity中是显示20帧的

