π导航  


【首页】

Blender游戏引擎教程:迷雾


【2024-04-12】 Blender学堂】


浏览图片
Blender
游戏引擎教程


浏览图片

1. 渲染引擎:Blender游戏

Info menu >> Engine box >> Blender Game

注:

只有当选择了Blender Game渲染引擎时,有些菜单才可用。

浏览图片

2. 视区着色:纹理化

3D View menu >> Viewport Shading box >> Textured

注:

纹理视区着色使用添加的纹理渲染游戏对象。

3. 材质着色: GLSL

Properties menu >> Render button >> Shading tab >> GLSL button

注:

迷雾对多纹理也有效

4. 启用GLSL设置

Enable Shaders

Enable Shadows

Enable Lights

Enable Color Management

Enable Ramps

Enable Nodes

Enable Extra Textures

注:

只有当渲染引擎选择Blender游戏后,GLSL设置才会出现。

5.启用迷雾

Properties menu >> World button >> Mist tab

Mist check box

6. 设置迷雾开始距离

Properties menu >> World button >> Mist tab

Start number field >> 5.0

注:

迷雾开始距离是迷雾开始到活动相机之间的距离。

例如,我们可以设置为5.0.

7.设置迷雾深度

Properties menu >> World button >> Mist tab

Depth number field >> 20.0

注:

迷雾深度是迷雾开始到迷雾成为一堵墙之间的距离。

例如我们可以设置为20.0

8.设置迷雾颜色

Properties menu >> World button >> World tab

Horizon Color selector >> Select color

注:

迷雾颜色采用水平颜色。

9.可选 -- 迷雾瀑布

Properties menu >> World button >> Mist tab

Falloff box >> Quadratic

注:

Quadratic:强度以抛物线函数形式增加 (ax2 + bx + c = 0)

Linear: 强度以线性递增。

Inverse Quadratic = 二次级数的倒数.

10. 可选: 不启动迷雾按钮

Properties menu >> Material button >> Options tab

Use Mist checkbox

注:

迷雾对物体上的材质有效。

如果你的物体上有多个材质,迷雾会让每个材质失效。

浏览图片

11.启动游戏引擎

Info menu >> Game >> Start Game Engine



                

copyright©2018-2024 gotopie.com