
深的偶包职业选术学院 国家示范性软件学院 3D网络游戏开发实践 主讲教师:徐守祥 任务5.2:实现暴风雨与雷鸣闪电 知识点总结
3D网络游戏开发实践 主讲教师:徐守祥 任务5.2: 实现暴风雨与雷鸣闪电 知识点总结

)深)倦包职业选术学院 任务5.2 国家示范性软件学院 实现暴风雨与雷鸣闪电 ●● 。暴风雨效果 。雷 。雨 。闪电
任务5.2 实现暴风雨与雷鸣闪电 ⚫ 暴风雨效果 ⚫ 雷 ⚫ 雨 ⚫ 闪电

任务5.2 回深剑团恩积少送术学院 en Institute ol Inform ation Technology 国家示范性软件学院 实现暴风雨与雷鸣闪电 ·雷 datablock AudioProfile(ThunderCrash1 Sound)/W雷声1 { filename ="~/data/sound/thunder1.wav"; description Audio2d: datablock AudioProfile(ThunderCrash2Sound)//2 datablock AudioProfile(ThunderCrash3Sound)//3 datablock AudioProfile(ThunderCrash4Sound)//4
任务5.2 实现暴风雨与雷鸣闪电 ⚫ 雷 datablock AudioProfile(ThunderCrash1Sound)//雷声1 { filename = "~/data/sound/thunder1.wav"; description = Audio2d; }; datablock AudioProfile(ThunderCrash2Sound)//雷声2 datablock AudioProfile(ThunderCrash3Sound)//雷声3 datablock AudioProfile(ThunderCrash4Sound)//雷声4

深创优包职业选术学院 任务5.2 henzhen Institute of Inform ation lechnology 国家示范性软件学院 实现暴风雨与雷鸣闪电 ·雨 datablock AudioProfile(HeavyRainSound) filename ="~/data/sound/rain.wav"; description AudioLooping2d;
任务5.2 实现暴风雨与雷鸣闪电 ⚫ 雨 ⚫datablock AudioProfile( 雨声 HeavyRainSound) { filename = "~/data/sound/rain.wav"; description = AudioLooping2d; };

)深的储职业选术学院 任务5.2 国家示范性软件学院 实现暴风雨与雷鸣闪电 雨数据集 datablock PrecipitationData(HeavyRain) soundProfile ="HeavyRainSound"; dropTexture ="~/data/storm/rain"; splashTexture ="~/data/environment/water splash";
任务5.2 实现暴风雨与雷鸣闪电 雨数据集 datablock PrecipitationData(HeavyRain) { ... soundProfile = "HeavyRainSound"; dropTexture = "~/data/storm/rain"; splashTexture = "~/data/environment/water_splash"; ... };

任务5.2 回深明包R少拉水园 henzien Institute ol Inform ation Technology 国家示范性软件学院 实现暴风雨与雷鸣闪电 ●● 雨对象 new Precipitation(RainStorm) datablock="HeavyRain"; offsetSpeed="0.25" minVelocity="1.5"; maxVelocity="3"; percentage="1"; maxNumDrops="5000"; MaxRadius="60"; }
任务5.2 实现暴风雨与雷鸣闪电 雨对象 new Precipitation(RainStorm) { ... datablock = "HeavyRain"; offsetSpeed="0.25" minVelocity="1.5"; maxVelocity="3"; percentage="1"; maxNumDrops="5000"; MaxRadius="60"; };

深例优包职业选术学院 任务5.2 国家示范性软件学院 实现暴风雨与雷鸣闪电 。闪电 闪电数据集 datablock LightningData(LightningStorm)/l闪电数据集 strikeTextures[0]="/data/maps/lightning.dml" thunderSounds[0]=ThunderCrash1 Sound;/随机选择 thunderSounds[1]ThunderCrash2Sound; thunderSounds[2]ThunderCrash3Sound; thunderSounds[3]ThunderCrash4Sound;
任务5.2 实现暴风雨与雷鸣闪电 ⚫ 闪电 闪电数据集 datablock LightningData(LightningStorm)//闪电数据集 { strikeTextures[0] = "~/data/maps/lightning.dml"; thunderSounds[0] = ThunderCrash1Sound;//随机选择 thunderSounds[1] = ThunderCrash2Sound; thunderSounds[2] = ThunderCrash3Sound; thunderSounds[3] = ThunderCrash4Sound; };

深的储包职业选术学院 任务5.2 国家示范性软件学院 实现暴风雨与雷鸣闪电 ●● Di Gul Ke J Gong Si 闪电对象 new Lightning(ElectricalStorm)f datablock="LightningStorm"; strikesPerMinute="30": chanceToHitTarget="100"; strikeRadius="250": boltStartRadius="20"; c0lor="1111"; fadeColor="0.10.11 1"; useFog="1
任务5.2 实现暴风雨与雷鸣闪电 返回 闪电对象 new Lightning(ElectricalStorm){ ... datablock="LightningStorm"; strikesPerMinute="30"; chanceToHitTarget="100"; strikeRadius="250"; boltStartRadius="20"; color="1 1 1 1"; fadeColor="0.1 0.1 1 1"; useFog="1" }