
3.6 上机练习
3.6.1 瓷器材质
本案例将介绍如何为茶杯添加瓷器材质,效果如图3-60所示,其具体操作步骤如下。

图3-60 打开的素材文件
01 按Ctrl+O组合键,在弹出的对话框中选择随书附带光盘中的“Scenes|Cha03|为茶杯添加瓷器材质.max”素材文件,如图3-61所示。

图3-61 选择素材文件
02 单击【打开】按钮,即可将选中的素材文件打开,效果如图3-62所示。

图3-62 打开的素材文件
03 按H键,在弹出的对话框中选择【茶杯】选项,如图3-63所示。

图3-63 选择【茶杯】选项
04 单击【确定】按钮,按M键,在弹出的对话框中选择一个材质样本球,将其命名为【白色瓷器】,在【Blinn基本参数】卷展栏中将【环境光】的RGB值设置为“255,255,255”,将【自发光】的【颜色】设置为30,在【反射高光】选项组中将【高光级别】、【光泽度】分别设置为100、83,如图3-64所示。

图3-64 设置Blinn基本参数
05 在【贴图】卷展栏中将【反射】右侧的【数量】设置为8,单击其右侧的【无】按钮,在弹出的对话框中选择【光线跟踪】选项,如图3-65所示。

图3-65 设置反射数量并选择光线跟踪选项
06 单击【确定】按钮,单击【将材质指定给选定对象】按钮,并使用同样的方法为【杯把】指定【白色瓷器】材质,按H键,在弹出的对话框中选择【茶杯贴图】对象,如图3-66所示。

图3-66 选择对象
07 单击【确定】按钮,在【材质编辑器】对话框中选择【白色瓷器】材质样本球,按住鼠标将其拖曳至一个新的材质样本球上,将其命名为【茶杯贴图】,在【贴图】卷展栏中单击【漫反射】右侧的【无】按钮,在弹出的对话框中选择【位图】选项,如图3-67所示。

图3-67 选择【位图】选项
08 单击【确定】按钮,在弹出的对话框中选择随书附带光盘中的“Map|杯子.JPG”位图文件,如图3-68所示。

图3-68 选择位图文件
09 单击【打开】按钮,在【坐标】卷展栏中取消选中【使用真实世界比例】复选框,将【瓷砖】下的【U】、【V】都设置为1,如图3-69所示。

图3-69 设置坐标参数
10 设置完成后,单击【将材质指定给选定对象】按钮,按H键,在弹出的对话框中选择【杯盖】、【托盘】对象,如图3-70所示。

图3-70 选择对象
11 单击【确定】按钮,在【材质编辑器】对话框中选择【茶杯贴图】材质样本球,按住鼠标将其拖曳至一个新的材质样本球上,将其命名为【托盘】,在【贴图】卷展栏中单击【漫反射】右侧的材质按钮,在【位图参数】卷展栏中单击【位图】右侧的材质按钮,在弹出的对话框中选择“盘子.JPG”位图文件,单击【打开】按钮,如图3-71所示。

图3-71 替换位图文件
12 单击【将材质指定给选定对象】按钮,关闭【材质编辑器】对话框,激活摄影机视图,按F9键进行渲染,效果如图3-72所示。

图3-72 添加材质后的效果
3.6.2 不锈钢材质
本案例将讲解如何对休闲椅添加不锈钢材质,其材质的具体操作方法如下,完成后的效果如图3-73所示。

图3-73 休闲椅
01 启动软件后,打开随书附带光盘中的“Scenes|休闲椅.max”素材文件,如图3-74所示。

图3-74 打开素材文件
02 按M键,打开材质编辑器,选择一个新的样本球并将其命名为【坐垫】,单击名称后面的按钮,在弹出的【材质/贴图浏览器】对话框中选择【标准】选项,单击【确定】按钮,如图3-75所示。

图3-75 设置材质球类型
03 在【明暗器基本参数】卷展栏中将明暗器类型设为【金属】,在【金属基本参数】卷展栏中,将【环境光】和【漫反射】的RGB值均设为“235,140,55”,将【自发光】下的【颜色】设为75,将【高光级别】设为24,【光泽度】设为94,将制作好的材质指定给【坐垫】对象,如图3-76所示。

图3-76 设置材质参数
04 继续选择一个空的样本球并将其命名为【不锈钢】,将材质球的类型设为【标准】,在【明暗基本参数】卷展栏中将明暗器类型设为【金属】,在【金属基本参数】卷展栏中将【环境光】的RGB值设为“0,0,0”,将【漫反射】的RGB值设为“255,255,255”,将【高光级别】设为100,【光泽度】设为80,如图3-77所示。

图3-77 设置材质
05 切换到【贴图】卷展栏中并单击【反射】后面的【无】按钮,在弹出的【材质/贴图浏览器】对话框选择【位图】选项,单击【确定】按钮,选择附带光盘中的“Msp|Bxgmap1.jpg”素材文件,在【坐标】卷展栏中将【贴图】设为【收缩包裹环境】,将【大小】下的【宽度】和【高度】都设为1,单击【转到父对象】按钮,将制作好的材质指定给【不锈钢】对象,如图3-78所示。

图3-78 设置材质