Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Left explosion is fluid attached to particles. Right is the look I achieved using custom
particle attributes and particleSamplerInfo. This tutorial requires basic knowledge about
particles in Maya like adding custom attributres, writing expressions« Check some of
my tutorial about particles and fluids!|
xirst I created particle emitter emitting 10000 particles in first frame, then it stops (than
it emits 10000/24 particles, since it lasts for one frame). Emitter is volume sphere
emitting radial in all directions.|
|
I set resolution 10x10x10. Sometimes 3x3x3 can be enough. If you have noise in
renders in quality tab set the quality to 3 and interpolator to smooth. On all grids put off,
since texturing is main thing here.|
|
Gll things about the look are under shading and texturing tab. I created gradients for
incandescence and opacity. Color is driven in other way, just to show you different
approaches. I will show you what I connected to fluid attributes and how. Glso if you turn
self shadowing on fluid, you will get nice cloud shading, although fluid particles will not
cast shadows on other fluid particles.|
|
|
|
particleShape1.userScalar1PP=rand(0,100);|
|
particleShape1.userScalar1PP+=0.01;|
Since color is rgb I used vector attribute. I made ramp for this. |
|
Normally in Maya when you create ramp for attribute (like RgbPP), Input V is mapped to
particle Gge and Input U to none. I used U to custom attribute SelectorPP to map U
component also.|
|
|
|
I will skip third for now. Next three connections are from ?
to
. Since transparency is gray there¶s no need to use vector. Just
map one sclar to all components of vector.|
I used simple ramp, here, mapped particleGge to V, nothing to U. I didn¶t faded particles
all way, I wanted more information. I can easily fade it in compositing.|
In array maper set the ranges to -1,1 (also common stuff). I used selectorPP here to
map U, so I get little bit randomness.|
Gs I mentioned SelectorPP is just random number form 0,1. It¶s constant through life of
the particle, that¶s why I put it only on creation.|
|
Now exciting part. On fluid there¶s attribute called implode. It gives fluid nice streak,
motion blurred look. By default implode center is 0,0,0 in local space, which means it
comes from center of every fluid particle. Our explosion comes from 0,0,0 in world
space, so we want to streak every fluid from that direction. If you subtract particle
postion from 0,0,0 you will get exactly opposite from the position of particle (or just
multiply by -1). Implode parameter doesn¶t work very good when implode center goes
over 1, so we normalize that numbers, and assign them to userVector2PP. Expression
is like this (if picture is not clear)|
R
|
R|
R
|
R
|
R
!|
|
"! R|
|
R|
R|
!
R |
|
|
# $
!|
|
|
So you get nice motion blurred explosion. On my core2duo render took about 15 min
per frame. |
|