1 / 7

3D 网络游戏开发实践 主讲教师:徐守祥

3D 网络游戏开发实践 主讲教师:徐守祥. 任务 5.1 : 建立天空与云雾 知识点总结. 任务 5.1 建立天空与云雾. 天空盒 游戏中室外场景使用一种叫做天空盒 (skybox) 的方法来实现; 围绕在玩家周围的一个巨大的立方体; 玩家和盒子壁的距离总是不变的。. 任务 5.1 建立天空与云雾. 天空盒展开. 前面. 顶. 右面. 前面. 左面. 后面. 底. 任务 5.1 建立天空与云雾. 天空背景文件. Sky_day.dml day_001//front day_002//right day_003//back

fritz-dale
Download Presentation

3D 网络游戏开发实践 主讲教师:徐守祥

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3D网络游戏开发实践主讲教师:徐守祥 任务5.1: 建立天空与云雾 知识点总结

  2. 任务5.1 建立天空与云雾 • 天空盒 • 游戏中室外场景使用一种叫做天空盒(skybox)的方法来实现; • 围绕在玩家周围的一个巨大的立方体; • 玩家和盒子壁的距离总是不变的。

  3. 任务5.1 建立天空与云雾 • 天空盒展开 前面 顶 右面 前面 左面 后面 底

  4. 任务5.1 建立天空与云雾 • 天空背景文件 • Sky_day.dml • day_001//front • day_002//right • day_003//back • day_004//left • day_005//top • day_006//bottom • day_007 • Cloud1 • cloud1

  5. 任务5.1 建立天空与云雾 • 天空对象 new Sky(sky) { } • ... • materialList="~/data/skies/sky_day.dml"; • //指定天空盒的图像名称 • ... • visibleDistance=“500”;//可视距离 • fogDistance=“300”;//从多远处开始模糊 • renderBottomTexture=“0”;//底部是否被渲染 • ...

  6. 任务5.1 建立天空与云雾 • 云 三层移动的云 new Sky(sky) { } • ... • cloudHeightPer[0]="0.349971"; • cloudHeightPer[1]="0.25"; • cloudHeightPer[2]="0.199973"; • cloudSpeed1="0.0001" • cloudSpeed2="0.0002" • cloudSpeed3="0.0003" • ...

  7. Volume Fog设置 参数 描述 distance 位于层中时的观察距离,0表示根本没有雾。 bottom 最低层 top 最顶层 任务5.1 建立天空与云雾 • 雾 • new Sky(sky) • { • .. • fogDistance = "1000"; • fogColor = "0.82 0.828 0.844 1“; • fogStorm1 = "0"; • fogStorm2 = "0"; • fogStorm3 = "0"; • fogVolume1 = "300 0 71"; • fogVolume2 = "0 0 0"; • fogVolume3 = "0 0 0"; • fogVolumeColor1 = "128 128 128 -2.22768e+038"; • fogVolumeColor2 = "128 128 128 0"; • fogVolumeColor3 = "1128 128 128 -1.70699e+038"; • }

More Related