unity3d如何添加烟雾?

unity3d如何添加烟雾?,第1张

添加烟还是雾?你试试Window——>瞎灶Rendering——>LightingSettings然后在面板下面找到Other Settings下的Fog勾上,这是unity自带的雾的效果,卜神谨下面有参数型基可以调节属性。不知道是不是你想要的效果。

好像过了挺久了...

新建音量(在游戏物品的窗口中)->Profile->Sky and Fog->开启雾效

|->Add override 添加雾效->开启吵型雾效

(如果Volume改为模式改为local 添加碰撞体 决定哪里有雾/但是这个雾在外部是不可仿纤视的)

独立的雾区域:新建空物品->添加density volume组件

(这个雾是外部可视的,而且可以添加雾的纹理 和升大猜纹理的类似uv动画的玩意..)

粒子在Unity中是用来制造烟雾、蒸汽、火及其它大气的效果。粒子系统通过使用一或两个纹理并多次绘制它们,以创造一个混沌的效果。

A Particle System included in the Standard Assets一个粒子系统包含在标准资源包中

A typical Particle System in Unity is an object that contains a Particle Emitter, a Particle Animator and a Particle Renderer. The Particle Emitter generates the particles, the Particle Animator moves them over time, and the Particle Renderer draws them on the screen.

If you want your particles to interact with the world, add a Particle Collider Component to the GameObject.

Unity中一个典型的粒子系统是一个对象,它包含了一个粒子发射器、一个粒子动画器和一个粒子渲染器。粒子发射器产生粒子,粒子动画器则随时间移动它们,粒子渲染器将它们绘制在屏幕上。

如果你想让你的粒子对世界有影响,添加一个粒子碰撞器组件到游戏对象中。

Ellipsoid Particle Emitter(椭球粒子发射器)

The Ellipsoid Particle Emitter spawns particles inside a sphere. Use the Ellipsoid property below to scale &stretch the sphere.

椭球粒子发射器在一个球形范围内产生大量粒子,使用Ellipsoid属性来缩放和拉伸范围。

The Ellipsoid Particle Emitter Inspector椭球粒子发射器的检视视图

Properties(属性)

Emit 发射

If enabled, the emitter will emit particles. 如果启用,发射器将发射粒子

Min Size

最小尺寸

The minimum size each particle can be at the time when it is spawned. 在产生粒子时每个粒子可以达到的最小租帆尺纤型陪寸。

Max Size

最大尺寸

The maximum size each particle can be at the time when it is spawned. 在产生粒子时每个粒子可以达到的最大尺寸。

Min Energy

最小活力

The minimum lifetime of each particle, measured in seconds. 每个粒子的最短寿命,以秒为单位。

Max Energy

最大活力

The maximum lifetime of each particle, measured in seconds. 每个粒子的最长寿命,以秒为单位。

Min Emission

最小发射

The minimum number of particles that will be spawned every second. 每秒会产生的粒子的最小数目。

Max Emission

最大发射

The maximum number of particles that will be spawned every second. 每秒会产生的粒子的最大数目毁蠢。

World Velocity

世界速度

The starting speed of particles in world space, along X, Y, and Z. 在世界空间中粒子的初始速度,沿X,Y和Z轴方向。

Local Velocity

相对速度

The starting speed of particles along X, Y, and Z, measured in the object's orientation. 粒子沿X,Y和Z轴方向的初始速度,以对象的定向为测量基准(意思就是粒子以某个对象为参照的相对速度)

Rnd Velocity

随机速度

A random speed along X, Y, and Z that is added to the velocity. 沿X,Y和Z的随机的加速度

Emitter Velocity Scale

发射器速度比例

The amount of the emitter's speed that the particles inherit. 粒子继承的发射器速度的总和

Tangent Velocity

切线速度

The starting speed of particles along X, Y, and Z, across the Emitter's surface. 粒子沿X,Y和Z跨越发射器表面的初始速度

Simulate In World Space

模拟世界空间

If enabled, the particles don't move when the emitter moves. If false, when you move the emitter, the particles follow it around. 如果启用,发射器移动时粒子不动;如果禁用,发射器移动时,粒子则跟随在周围

One Shot

单次发射

If enabled, the particle numbers specified by min &max emission is spawned all at once. If disabled, the particles are generated in a long stream. 如果启用,粒子数是最小和最大数目之间的一个数(?)。如果禁用,这些粒子将产生一个粒子流。

Ellipsoid

椭球

Scale of the sphere along X, Y, and Z that the particles are spawned inside. 沿X,Y和Z产生粒子的球形范围

MinEmitterRange

最小发射器范围

Determines an empty area in the center of the sphere - use this to make particles appear on the edge of the sphere. 在球形的中心确定一个空白区域——用此来使粒子出现在该球形的边缘

Details(细节)

Ellipsoid Particle Emitters (EPEs) are the basic emitter, and are included when you choose to add a Particle System to your scene from Components->Particles->Particle System. You can define the boundaries for the particles to be spawned, and give the particles an initial velocity. From here, use the Particle Animator to manipulate how your particles will change over time to achieve interesting effects.

椭球粒子发射器(EPEs)是基本的发射器,当你选择添加一个粒子系统到场景时,通过菜单Components->Particles->Particle System。你可以定义产生粒子的边界,并给出粒子的初速度。从这里,使用粒子动画器 *** 纵你的粒子随时间实现有趣的效果。

Particle Emitters work in conjunction with Particle Animators and Particle Renderers to create, manipulate, and display Particle Systems. All three Components must be present on an object before the particles will behave correctly. When particles are being emitted, all different velocities are added together to create the final velocity.

粒子发射器与粒子动画器和粒子渲染器一起工作来创建、处理和显示粒子系统。在粒子正确表现之前这三个组成部分都必须呈现在对象上。当粒子被发射,所有不同的速度相加成为最终的速度。

Spawning Properties(属性)

Spawning properties like Size, Energy, Emission, and Velocity will give your particle system distinct personality when trying to achieve different effects. Having a small Size could simulate fireflies or stars in the sky. A large Size could simulate dust clouds in a musky old building.

产生粒子的属性,如尺寸、活力、发射、和速度将在你试图达到不同的效果时,给你的粒子系统鲜明的个性。用一个小的尺寸可以模拟萤火虫或天空中的星星,大尺寸的可以模拟尘埃云。

Energy and Emission will control how long your particles remain onscreen and how many particles can appear at any one time. For example, a rocket might have high Emission to simulate density of smoke, and high Energy to simulate the slow dispersion of smoke into the air.

活力和发射将控制你的屏幕上粒子将保留多久以及一次可以产生多少粒子。例如,火箭可能有较高的发射来模拟浓烟,较高的活力来模拟烟雾在空气中缓慢扩散。

Velocity will control how your particles move. You might want to change your Velocity in scripting to achieve interesting effects, or if you want to simulate a constant effect like wind, set your X and Z Velocity to make your particles blow away.

速度将控制你的粒子如何运动。你可能希望通过脚本来改变速度以实现有趣的效果,或者如果你要模拟一个持续效果,比如风,设定你的X和Z的速度,使你的粒子被吹走。

参考

cnblogs.com/sevenyuan/archive/2012/08/07/2626771.html


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/bake/11969075.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-20
下一篇 2023-05-20

发表评论

登录后才能评论

评论列表(0条)

保存