Maya特效教程
maya粒子做魚群效果
用maya粒子做魚群游動效果
大家在很多電影中看到的魚群...很多都是用軟件做的哦~畢竟,沒有那么多劉謙的魚,沒那么聽話的...現(xiàn)在我來教大家怎么用maya粒子來做這個魚群游動的效果~
首先建立一個nurbs的plane,然后拉點做成魚的形狀,命名為fish,保證魚頭的方向是x軸正向,脊背的方向為y軸正向

給魚(fish)作Deform>Create Nonlinear>sine ,然后通過旋轉(zhuǎn)變形器,使魚左右擺 動.

將變形器sine1的Amplitude值設(shè)為0.3(這個值決定魚左右擺動的幅度),給Offset值做表達式 sine1.offset=frame/20 ,播放動畫,如果魚頭的動作不對則在frame前加負(fù)號,如果魚的左右擺動速度太慢,則將分母20縮少為10或更小,wavelength值設(shè)為2。給魚(Fish)和sine變形器打一個組,命名為fish_grp

在YZ座標(biāo)平面內(nèi)建一個Nurbs的Plane,命名為emit_fish,然后做Particles>Emit from Object,發(fā)射方式為surface

選擇fish_grp,做Particles>Instancer(Replacement)Option,將Rotation Options下AimDirection值設(shè)為Velocity,這是保證魚頭朝向運動方向的關(guān)鍵

播放動畫將會有魚群游出,但是運動很一致

建立一個Locator,選擇粒子particle1和locator1,做Particles>Goal,(如果不做goal也可以有魚群的運動,做goal是為了讓魚群有個目標(biāo)體跟蹤,這樣的效果更好)。
給粒子加一個紊亂場Fields>Turbulence。其Magnitude值設(shè)為100,attenuation為0。
粒子particle1的屬性中,conserve值為0.9,goal smoothness為4,goal weight[0]為0.3,(注意goal active[0]保持on的狀態(tài))

給locator1的運動打關(guān)鍵幀,魚群就會跟隨locator1運動

現(xiàn)在來看看效果吧!~

上一篇:maya粒子動力學(xué)
下一篇:maya流體制作真實的火焰1