📄 使用聚光灯.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>使用聚光灯</title>
</head>
<body bgcolor="#CCFFFF" vlink="#0000FF">
<p align="center" style="margin-top: 0; margin-bottom: 0"><b><font size="6" color="#FF0000" face="华文中宋">3D
Max</font></b><font size="6" color="#FF0000" face="华文彩云"> </font><font face="华文彩云" size="6" color="#FF0000">动画基础</font></p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font color="#0000FF">二十五、使用聚光灯</font></p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font color="#0000FF">通过</font>上一节的学习,我们对灯光有了一定的认识,除了提供场景的<font color="#800000">照明</font>以外,灯光还使得物体产生影子,使场景富有<font color="#800000">生气</font>,就像真的一样,这一节我们通过阳光透射窗户的例子来学习聚光灯的使用;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font color="#0000FF">
1、创建一个居室</font></p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
1)选择长方体,创建两堵墙和一个地板,复选“<font color="#800000">建立贴图坐标</font>”,形成室内一角,再创建一个桌子和凳子,桌子上摆放一些物品,<font color="#800000">名称</font>都起好,桌、凳组合好,并赋予材质,保存一下文件;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
2)在左边的墙上准备做一个窗户,选中左墙,单击右键选择“<font color="#800000">隐藏未选中的</font>”,只留下左墙,然后选择长方体,在左墙上绘制一个窗户大小的长方体,比墙厚一些,卡在墙里头,一会儿用它<font color="#800000">挖出</font>一个窗户洞;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
3)选中左墙,单击右键选择“隐藏未选中的”,再在创建面板找出“<font color="#800000">复合物体</font>”,选择“布尔运算”,在卷展栏中单击“<font color="#800000">拾取物体B</font>”,然后在视图中选择小长方体,立刻左墙被挖去一块,执行了默认的“A-B”的运算,很科学吧?</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
4)窗框中绘制两个十字交叉的窗棱,然后用薄的长方体创建一块<font color="#800000">玻璃</font>,将各个物体对齐,并起好<font color="#800000">名称</font>,赋予材质;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
5)单击右键,选择“取消全部隐藏”,显示全部的物体,准备设置灯光;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0"><font color="#0000FF">
2、创建聚光灯</font></p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
1)窗户在左侧,因此在<font color="#800000">顶视图</font>的左边对着窗户的方向添加聚光灯;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
2)选择目标聚光灯,在顶视图的左边绘制一个聚光灯,让圆锥光线范围穿过窗户,包括住场景中的物体,可以发现场景立刻变暗,渲染一下透视图,黑暗中有一线光明;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
3)调整聚光灯的位置和高度,使得光线充满窗户,然后再调整目标的高度和位置,让圆锥的光圈落在地板上,注意不同视图的移动方向;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
4)选择聚光灯,在修改面板的卷展栏“聚光灯参数”中,调整“<font color="#800000">聚光范围</font>”和“衰减范围”使得落在地板上的光圈大小合适;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0"><img border="0" src="images/放聚光灯.jpg" width="199" height="194"></p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
5)对透视图渲染,照射的物体没有<font color="#800000">影子</font>,这跟实际不符,在修改面板中找到“阴影参数”复选“<font color="#800000">打开</font>”,设置阴影;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
6)渲染一下,你会大吃一惊,场景中什么都没了,为什么会这样呢?原来左墙挡住了光线,窗户虽然有玻璃但是创建玻璃的“长方体”是<font color="#800000">不透光</font>的,是不是透明度不够呢?也不是,那只是一个材质,也就是看起来透明,对光线却是<font color="#800000">不透明</font>的,怎么办?</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
7)设置光线的包括范围,<font color="#800000">去除</font>对光线有阻碍的物体,在“通用参数”卷展栏,单击“<font color="#800000">排除</font>”,弹出一个面板,左右两部分;在左边找到玻璃,单击中间的向右的<font color="#800000">双箭头</font>发到右边的列表中,单击确定,就把玻璃排除了;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
8)减小阴影的<font color="#800000">密度</font>,适当调整桌子的位置,场景太黑,再添加<font color="#800000">泛光灯</font>,注意调整它的<font color="#800000">倍增</font>参数,不能太亮了;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0">
9)对场景渲染,看看最终的效果,是否符合我们日常的生活景象;</p>
<p align="left" style="line-height: 150%; margin-top: 0; margin-bottom: 0"><img border="0" src="images/窗户投影.jpg" width="320" height="240"></p>
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0" align="left"> <font color="#0000FF">本节</font>学习了聚光灯的使用方法,如果你成功地完成了练习,请继续学习下一课内容。</p>
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font SIZE="1" color="#008000">
本教程由86团学校TeliuTe制作|著作权所有,不得用于商业用途
</font>
</p>
<p style="line-height: 150%; margin-top: 0; margin-bottom: 0">
<font SIZE="1" color="#008000">
美丽的校园……
</font>
</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -