hi guys and girls another tutorial for 嗨，男人和女孩的另一个教程
you this one was a request somebody 你这个人是一个请求
asked for a particle system for falling 要求一个落下的粒子系统
leaves so we're gonna work on that I'm 叶所以我们 对我 会工作
gonna be using two textures and a static 将使用两个纹理和一个静态
mesh for this there is none using a mesh 这个网格没有使用网格
it's because I want a particular kind of 这是因为我希望有一种特殊的
rotation if we weren't using a mesh the 旋转， 如果我们没有使用网格
image would always be facing the camera 图像总是面向相机
and would only rotate on one axis and 并且只会在一个轴上旋转
that's not what we want I want to be 这不是我们想要的
able to make these rotate on multiple 能够使这些旋转的多
axes so they look a bit more realistic 轴因此看起来更逼真
so the textures that we're going to use 所以我们要使用的纹理
are a diffuse that I've just found on 是我刚刚发现的弥漫
Google a normal map generated from Google生成的普通地图
bitmap to material and then just their 位图到材料， 然后只是他们的
edges the plane that I've added a couple 边缘我添加了一对 的飞机
of crimps to just so that you can never 卷曲只是为了让你永远不会
really tell that this is a flat plane 真的告诉我这是一架平面飞机
while is falling so first thing we're 虽然正在下降所以我们首先要做的事情
going to do is right-click and well 要做的就是右键单击并且很好
create a new material this is going to 创造这将 新材料
be leaf underscore and just move my 是叶子下划线，只是移动我的
phone out of the way so just lint on it 手机闪开所以就掉毛就可以了
and it vibrated well open this up and 它振动得很好，打开了
we'll grab a diffuser now normal and 我们现在正常抓住一个扩散器
dragged easy we'll probably get a lot 拖得容易，我们可能会得到很多
more straight into the novel just make 更直接进入小说中
this planar so we can see this there you 这个平面所以我们可以在那看到你
go 走
nice normal and then we'll plug our 很正常，然后我们将插入我们的
diffuse into the base color we're going 扩散到我们要去的基色
to change the material to be a 将材料更改为a
translucent default lip material and 半透明默认唇材料
we're going to change the lighting mode 我们要改变照明模式
from volumetric non directional 从体积非定向
volumetric directional which lets us use 允许我们使用的体积方向
a normal map with a translucent material 带有半透明材质的法线贴图
so we don't have any opacity in this 所以我们没有任何不透明性
we're just going to take the Alpha 我们打算拿下阿尔法
Channel and put that into the opacity 将其添加到不透明度中
and that should give us a nice 这应该给我们一个好的
leaf yay it's very leafy now if we turn 叶子，如果我们转过来，现在它很绿叶
this into a ball real quick so you can 这很快成为一个球，所以你可以
see the way this is gonna be nice and 看到的样子，这是去是好的，
shadowy as we live in this lip we want 因为我们生活在这个嘴唇中，我们想要的是阴暗的
the we want the light to actually affect 我们希望光能真正影响
this we're just gonna click two-sided 这个我们只是点击双面
here and that's gonna make the preview a 在这里，这将是预览a
little bit funky because it's going to 有点时髦， 因为它会
be drawing on top of itself but that's 正在绘制自己，但那是
that's okay 没关系
you see that's very very funky weird and 你看这是非常非常时髦的怪异和
then we are going to just apply then you 然后我们将会申请你
can save that and then we're gonna make 可以保存， 然后我们会做
the actual powerful system I'm just 实际强大的系统我只是
going to assign the leaf material to 去叶材质指定给
this plane just so that it's on there by 这架飞机正好在那里
default yeah right-click particle system 默认是的右键单击粒子系统
leave underscore Pete looking this up 离开强调皮特看这件事
and now we're going to the right-click 现在我们要 右击
type data new mesh data under the mesh 在网格下键入数据新的网格数据
we're gonna find the leaf on your school 我们会找到你学校的叶子
static mesh oh he's that big in you get 静态网格哦，你得到的那么大
is that material gonna choke it there it 是那种材料会把它扼杀在那里
is yeah 是的
now if you don't place the material on 现在，如果你没有放置材料
top of the static mesh then you'll have 然后你将拥有静态网格的顶部
to use this little box here which is 在 这里 使用这个小盒子
override material and then go to the 覆盖材料，然后转到
required and under the material find the 要求和根据材料找到
material that you used with leaf 你用叶子的材料
underscore m okay so first thing we'll 强调米好了，所以首先我们要的东西
do is we'll head into spawn and we're 我们会进入产卵区吗？
gonna change this one to a constant two 要改变这种一到一个常数有了两种
because we don't we don't want too many 因为我们不想要太多
of these we only want a couple of these 这些我们只希望这些夫妇
at a time I'm gonna go into their 在那个时候我会进入他们的
lifetime and I'm going to give these a 一生， 我要给这些
set a minimum and maximum of thirty 设定最小值和最大值为30
seconds on this to persist for quite a 这一秒将持续相当
while before they disappear 而在他们消失之前
their initial size this is really 他们的初始大小确实如此
we're gonna change this to a maximum of 我们要改变这一个最大的
one and a minimum of point six perhaps 也许至少是第六点
now it shouldn't be too big in the world 现在它不应该在世界上太大
but we'll see in a little while 但我们会在一段时间内看到
their initial velocity we are going to 他们的初始速度我们要去
set to the 10 10 minus 20 then minus 10 设置为10 10 -20然后减去10
minus 10 minus 20 so they're they'll 减10减20所以他们就是他们
scatter on the X&Y where are we the 分散在X和Y上我们在哪里
scatter on the X from Y with a slight 从Y开始散布在X上
random offset but the Z is always going 随机偏移，但Z总是在前进
to be the same so they're all gonna fall 是一样的，所以他们都会堕落
about the same rate color of life we 我们的生活颜色大致相同
don't need to delete that we're going to 不需要删除我们要去的地方
right-click location there is initial 右键单击位置有初始值
location we're going to give this an 我们要给这个位置
area where they can all spawn so maximum 它们都可以产生最大的区域
of 250 250 mm 250 ya know - for that and 250 250 mm 250ya知道 - 为此和
the minimums are going to be 250 - 250 - 最低限额将是250 - 250 -
250 and then leave the location on 250 250然后将位置保留在250
we want them all to spawn hi 我们希望他们都能产生喜
but at random locations and they're 但在随机的位置，他们是
doing that now you can see them now we 现在你可以看到他们了
get a right-click can we go ahead to 得到单击右键，才能继续前进，
orbit and we're gonna get an orbit and 轨道，我们将得到一个轨道和
this is going to create like a nice 这将创建是一个不错的
little windy effect so they kind of 它们有点风大的影响
caught in the wind underneath the offset 在偏移下方的风中被抓住 了
mount under the minimum maximum we're 在我们最小的最大值下安装
going to change these values to be 50 50 要将这些值更改为50 50
is 0 and then 25 25 0 they go in for 是0然后25 25 0他们进去
room 房间
I have a feeling that might be the wrong 我有一种可能是错误的感觉
numbers that I've got written down 我写下来的数字
Nathan 5:5 and 2.5 or I change their 内森5：5和2.5或我改变他们的
rotation Ament yeah so we want to change 旋转Ament是的，所以我们想要改变
their rotation amount down we can 他们的轮换量我们可以
probably go for even further down than 可能更进一步
that because we want these to have this 因为我们希望这些有这个
nice orbit I fetched but we don't be 我获得了不错的轨道， 但我们不是
anywhere near as powerful as it was just 任何接近强大，因为它只是
now rotation rate to mountain let's turn 现在的旋转速度 山让我们把
that down as well again now you can see 现在你可以看到再次下降
that they are getting like a little bit 它们越来越像一点点
of a spin to them but it's it's very 对他们来说是一个旋转，但它是非常的
very slight so we're going to head back 非常轻微所以我们要回头了
to the offset here and we are actually 这里的偏移，我们实际上是
going to increase this back up to 50 50 要增加这个回升到5050
0 and 25 25 0 so now they look like 0和25 250现在看起来像
they're kind of just caught in this nice 他们有点陷入这个美好的状态
draft as you can see on them all there 你可以在那里看到草稿
now get a right-click and we're going to 现在得到一个右键点击我们要
head to rotation initial mass rotation 头部旋转初始质量旋转
or this is going to do is it's going to 或者这是要干什么时它会
spawn the moor then at a random point 然后在随机点产生沼泽
random random amount of rotation you can 随机随机旋转量你可以
see and now we're gonna right-click 看，现在我们要点击右键
rotation rate initial mesh rotation rate 旋转速率初始网格旋转速率
now you can see these are all flying 现在你可以看到这些都飞了
around like a lot so we're gonna change 周围很多，所以我们会改变
this down to maybe minus one mine at 这归因于可能减一矿在
point one point one point one with a 点一个点一个点一个用
minimum of 0 and now they're gonna get 至少0，现在他们会得到
this nice light little flap so they can 这个漂亮的 小光瓣让他们可以
all rotate air is just slightly you can 所有旋转空气只是你可以
maybe ten it down even more two point 也许10下来更两点
zero five depends on how how windy you'd 零五取决于你如何刮风
like it to look I quite like that that's 喜欢它看起来我非常喜欢那样的
that's quite a nice amount so we'll save 这是相当不错的金额，所以我们会节省
that real quick the bounds are fine 真正的快速界限很好
we'll just set them just in case and I 我们只是设置它们以防万一
will drag this into the level raise it 将它拖到提升它的水平
up a little bit now you can see the 现在你可以看到了一点点
folly there we go now they are still a 愚蠢我们现在去，他们仍然是一个
little bit big so I'm probably gonna 有点大，所以我可能会
change their sight a little bit and of 改变他们的视线一点点
course you can tell that they're quite 当然你可以说它们很完美
obviously spawning here but that's 显然在这里产卵， 但那是
because there's no tree in a natural 因为自然界里没有树
scene you'd have a tree and you put the 场景你有一棵树，你把它
particle emitter inside the actual tree 实际树内的粒子发射器
so they look like they're coming out of 所以他们看起来像是在走出来
the tree itself yeah these are so very 树本身是啊，这些都是非常等等
big nay can see that we're getting the 大不了可以看到我们得到了
the bounds issue here so H do is just 这里的边界问题所以H做的只是
let this this little cheeky Devils place 让这个小小的厚颜无耻的魔鬼放置
through and then set that for expense 通过，然后设置为费用
afterwards once these are a little bit 之后这些都是一点点
of lower let's quickly change their size 更低的让我们迅速改变他们的大小
or say point six point six point six 或者说点六点六点六
followed by 0.3 yeah although that's 然后是0.3是的， 虽然那是
I've removed their place for you so here 我已经把你的位置移到了这里
we go now if you wanted to make these 如果你想制作这些，我们现在就去
look like there's a side breeze we can 看起来我们可以有微风
go into acceleration then give the easy 进入加速然后轻松
an acceleration and let's say we want 加速，让我们说我们想要
these to be blowing on the Y we can stay 这些要吹Y我们可以留下来
there blowing between 50 and 25 and 50 在50到25和50 之间吹
and now you see that they're all blowing 现在你看到他们都在吹
sideways 侧身
yay I'm a bit it's a bit strong really 我真的有点强壮
isn't it so strong and then we'll give 不是那么强大，然后我们会给
them also a bit of downwards drag oops I 他们也有点向下拖动我
say downwards and I know don't put 向下说， 我知道不要放
negative values they're floating away 负值他们飘走
maximum of minus five minimum of minus 最小减零最小值减去零
ten 十
I know they'll all slowly fall downwards 我知道他们都会慢慢倒下
but are we going sideways and I can see 但我们是否会侧身而且我能看到
this one's a little here I think they 我认为这是一个在这里的一点点
are so just let that play through for a 如此才让， 对于一个玩透
second so you can see them that's where 第二，所以你可以看到他们在哪里
the bounds ends so if you're not looking 如果你不看，那么界限就会结束
at the bounds the particles will no 在界限处，粒子将没有
longer render no matter where they are 无论在哪里，渲染时间都会更长
see that they blink in and out of 看到它们闪烁进出
existence there if you wanted some more 如果你想要更多，那就存在
leaves obviously just increase this born 叶子显然只是增加这个出生
rate yay nice and cool and they're doing 速度很好，很酷，他们正在做
that thing now these are going to be 那件事情现在会发生
flying through the level I assume let's 飞过水平我假设让我们
think 认为
yeah we can see it is there if we just 是的，如果我们只是，我们可以看到它在那里
grab this real quick yeah you can see 抓住这个真正的快速是的，你可以看到
they're flying through the lower than 他们通过低于飞行
the system for the full 30 seconds so we 系统整整30秒所以我们
can in fact get these a collision so if 事实上可以让这些碰撞，如果
we right-click tuition after collision 我们在碰撞后右键点击学费
and just leave that set to kill so when 然后离开那套杀人
they hit the floor now they should you 他们现在应该在地板上
should die six pounds I guess a nice big 应该死六磅我觉得一个很好的大
area now so we should be able to see if 现在区域，所以我们应该看到，如果
we firstly I know they'll don't no 我们首先知道他们不会没有
longer disappear in there well they'll 他们会在那里消失得更久
no longer just fly through the level 不再只是飞过水平
they'll actually die when they hit the 当他们击中时他们真的会死
floor so they should just pop out of 因此他们应该突然出现
existence rather than fly through the 存在而不是飞过
floor 地板
there we go we fix the bounds and these 在那里，我们去修复界限和这些
are blowing in the wind 在风中飘扬
yay and you can see there that none of 你可以看到那里没有
them are flying through the floor 他们 在地板 上飞舞
they're ending so we're not getting any 他们结束了所以我们没有得到任何结果
orange squares that indicate where they 橙色方块表示它们的位置
are so there you have it some nice 是这样你有一些不错的
falling leaves how that's been helpful 落叶如何有用
for you guys thank you to the person 为你们感谢你的人
that requested this and I did already 要求这个，我已经做了
have a version of this going but I 有一个版本，但我
wasn't using mesh in that version I 在那个版本我没有使用网格
decided to change it to a mesh version 决定将其改为网格版
because now we get this really nice 因为现在我们真的很好
shadowing on the underside of the leaves 在叶子的下面遮蔽
that changes what they're rotating and 改变他们旋转什么，
stuff and you just get a much nicer 东西，你只是得到一个更好的
amount of rotation out of them they look 他们看起来旋转的量
a little bit a little bit sweeter yes so 一点点一点点 甜是这样
have fun with that one I hope that you 和那个玩得开心，我希望你
guys can use that and I'll see you next 伙计们可以使用它，接下来我会见到你
time 时间