Browsing Posts published in January, 2009

Ever seen a movie that had sparks flying out of control panels?  Or maybe you’ve always wanted to have smoke coming out of your character’s ears when he’s mad?  Those are particle effects, and you’ll find that they’re a breeze in 3dsMax when you use the right tools.

Particles are what artists use when they need a lot of objects, but don’t want to model or animate them by hand.  Particle systems create, animate, and destroy objects according to a set of rules.  These rules can be very basic, like “create 10 spheres per frame, starting at frame 0″.  These are known as non-event-driven particle systems. 3dsMax particle systems can also be quite complex!  Take, for example, the motion of soap bubbles in the air.  They float quasi-randomly and if they touch, they stick together.  If they touch another object, they’ll pop, and sometimes they just pop for no reason at all. This might be considered an event-driven particle system since the bubbles are subject to a variety of possible events.

Rotation and Collision
Particle Generation

Particle Generation

This next rollout handles how 3dmax handles the rotation of the particles, as well as the inter-particle collisions.

The particle rotation is more important for some particles than for others.  For example bubbles and water won’t create any visible effects from rotation.  On the other hand, cartoon-y snow flakes rely on the effect quite heavily.  The spin time parameter determines how many key frames there are during a full 360-degree rotation of the particle.  A high value here will slow down the particle rotation considerably, but a value of zero will provide no rotation at all!

The “phase offset” controls the initial offset for the particle rotation.  Don’t worry, the varying particle ages (and variation on spin time) will keep your particles from rotating all together.

The spin axis control handles the base rotation for the objects.  Some 3d objects will rotate over a predefined axis- like tires.  Others have no particular rotation like our tennis ball example earlier.  Thus, you may choose between a random spin axis (full 3d spin), direction of travel spin (holding the directional vector spin-less), or arbitrary spin directions (set your own spin levels).  The direction of travel spin is probably the hardest to describe or understand.  Imagine a propeller of an aircraft moving forward through space.  It’s rotating over one degree (spinning) but not the other two (tumbling and twisting).

Inter-particle collisions is a massively intensive process that checks for particles striking and bouncing off one another.  This is useful for small numbers of detailed particles like throwing televisions or bouncing tennis balls around.  However, do not turn this feature on unless you’re looking for “broadcast quality” effects because it will slow down your render times considerably.  Calculation intervals per frame control how often 3dsMax checks for inter-particle collisions, while the bounce coefficient and variation control how much speed the particles should retain when they bounce off of each other.  I can’t stress this enough, do not turn this on unless it’s really necessary!

Object Motion Inheritance and Bubble Motion
Particle Generation

Particle Generation

These two rollouts are pretty straightforward.

The first controls how the particles should inherit the emitter’s motion and keyframing.  While this might sound silly, think about how your emitter might be moving.  That new space-ship might look extra cool if it’s gravi-pads could shoot out sparks during flight!  Or maybe it’s taking damage and throwing gibs that need to fall away during the great escape sequence.  Thus, you need to allow the particles to take on some or all of the motion of the parent emitter in order for the particles (especially heavy ones) to be emitted properly.

Bubble motion is what bubbles exhibit as they move upward through water.  They wiggle randomly during motion.  Similarly, you’re able to append an amplitude (severity of the effect), period (the amount of time to complete a single “wobble”, and phase (synchronicity across emitters).

Particle Spawn and Presets

Finally, we have particle spawn and presets.  I’m not going to go into a lot of detail on these last two rollouts, as they’re not really suitable for this walkthrough.

The super spray presets are pretty self-explanatory.  This rollout contains a number of pre-built emitter settings and it provides you the ability to create your own.

The particle spawn group controls “advanced” particle spawning procedures such as what kind of spawning procedure should take place when particles collide, die, or continue.  To die on collision will destroy the particles that’ve struck a deflector (more on this later).  By this point, you should be able to deduce what “spawn on collision” and “spawn on death” imply.  Show trails will create new particles every keyframe, which can be useful for certain effects such as fireworks or sparks.

The directional chaos, speed chaos, and scale chaos groups have to do with the spawning of new particles (spawn on collision, spawn on death, and spawn trails).

Note that these high-end settings allow you to create fantastic effects such as fire, complex explosions, and more.  By spawning many smaller particles from a larger one, you can simulate how an object might burn or subdivide while animated.  Directional chaos controls the variance in the sub-particle’s direction.  Speed operates in much the same way.  Scale chaos handles the sizing of the sub-particles.

Other Particle Emitters

Alright!  So we’ve had a long hard look at the super spray particle system in 3dsMax.  But what about the other emitters?  Lucky for us, particles have a finite span of concepts, and we’ve already covered 95% of them!  The remaining particle systems like snow and pCloud are just different combinations of the same idea.

Snow

Snow is an optimized particle generator geared toward creating snow or confetti.  What separates snow from spray is that the snow particle emitter can generate particles over an area rather than from a single point like the spray.  There aren’t many parameters to this emitter- only the basics.  Emission speed, timing, particle type (six point, triangle, or facing), particle size, and rotation.  That’s it.

Blizzard

Blizzard is to snow as super spray is to spray.  The 3dsMax blizzard particle emitter is basically a snow emitter but with much greater control.  You have access to very similar controls as the super spray emitter like object motion inheritance, collision control, and presets.  3dsMax blizzard particle emitters still retain their most important characteristic; area particle generation.

pArray
Distributions from left to right: Edges, Vertices, Faces.

Distributions, left to right: Edges, Vertices, Faces.

Ah the particle array!  This fantastic mechanism allows you to spread particles over the surface of an object rather than simply flying through the air.  This is a very different concept than the other particle emitters, so I’d like to spend a little more time discussing it’s importance and uses.

The particle array can be used for a variety of tasks.  For example, you could spread water droplets over a product, or rocks and trees throughout a meadow.  The pArray emitter is often used for populating a plant with twigs and leaves to create a tree or shrub.  This geometry based distribution is a very powerful tool.  The best part is, you’re already familiar with most of the parameters that pArray uses like collision handling and particle object types.

pCloud
Particles in a volume defined by a teapot.

Particles in a volume defined by a teapot.

The 3dsMax particle cloud is another powerful tool.  Similar to the particle array, the cloud allows you to fill an object’s volume with particles!  This could mean anything from schools of fish to a ring of asteroids filling a massive torus.  You can use this emitter to create a wide variety of effects.  The only distinguishing feature of this emitter (and it’s parameters) is that you must select a bounding volume (cube, sphere, cylinder, or an object you created).  You can see this emitter in action on the right, where I’ve filled a teapot with spheres.

Remember that pClouds and pArrays can be used to great effect in your 3d modeling as well as your animations.  For both single images and animations, these two tools are quite valuable for adding detail beyond what you can do by hand.

Forces and Deflectors

Deflectors in the walls.

Deflectors placed in the walls.

What good are particles if they can’t be controlled?  That’s why we have forces and deflectors available to us.  Deflectors are typically quasi-objects that help keep particles from doing unusual things like going through walls or characters.  If we wanted, it’s possible to make particles use the object mesh for collision detection every time.  But the better route is to approximate the shape using cubes, spheres, and planes whenever we can.  Forces are useful for directing the flow of particles so that we don’t have to keyframe them by hand to create complicated effects like tornados, explosions, and wind.

Let’s run through some of the simpler forces and deflectors and see how they can be useful when working with 3dsMax particles.

How and Where
Heres where you find Deflectors and Forces.

Here's where you find Deflectors and Forces.

You can find forces and deflectors under the pulldown in the create panel under the space warps group.  Each of these objects can be created in the same way as ordinary spheres and cubes; by clicking and dragging.  However, in order to have them affect a 3dsMax particle emitter, forces and deflectors must be “bound”.  You’ll find the “bind spacewarp” tool in your main toolbar along the top of the screen.

Bind spacewarp button

Bind spacewarp button

You use it by starting with the spacewarp selected and click-dragging to the emitter.  This will bind them together, and you’ll see the effect in two ways.  First, the modifier stack of the emitter will have a “Binding” modifier showing you that it was effective.  You should also see some effect on the particles in real time.
Learn more about forces and deflectors on the next page!

Ever seen a movie that had sparks flying out of control panels?  Or maybe you’ve always wanted to have smoke coming out of your character’s ears when he’s mad?  Those are particle effects, and you’ll find that they’re a breeze in 3dsMax when you use the right tools.

Particles are what artists use when they need a lot of objects, but don’t want to model or animate them by hand.  Particle systems create, animate, and destroy objects according to a set of rules.  These rules can be very basic, like “create 10 spheres per frame, starting at frame 0″.  These are known as non-event-driven particle systems. 3dsMax particle systems can also be quite complex!  Take, for example, the motion of soap bubbles in the air.  They float quasi-randomly and if they touch, they stick together.  If they touch another object, they’ll pop, and sometimes they just pop for no reason at all. This might be considered an event-driven particle system since the bubbles are subject to a variety of possible events.

So far we’ve only looked at particle emitters, space warps, and deflectors.

3dsMax particle emitters will generate particles according to predetermined criteria. While they vary from emitter to emitter, the fact is that they’re static implementations of a more diverse idea. The space warps and deflectors have the capacity to alter the behavior of the particles, but not really their look and feel.

That’s why we have access to a powerful tool called Particle Flow. It allows us to customize the rules and procedures that govern the timing, motion, and look of particles.

Particle Flow

Next to the Snow, Blizzard, and super spray particle emitters in the 3dsMax interface, you probably noticed that there’s one I didn’t mention; “PF Source”.  It’s full title is read as “particle flow source”, and it acts as the main conduit for creating very extensible particle systems.  Go ahead and create one in your scene, and, under the modify panel, click the “Particle View” button from the “Setup” group.

This is the default particle flow window.

This is the default particle flow window.

I realize that this window is terrifying.  Autodesk does not do well in creating a clean and easy interface.  However, their engineers are a credit to the industry, so once you get past the cold interaction you’re on top of the heap.

Understanding the terminology of the window will help you understand what each of the 4 quadrants are.  The particle flow diagram is made up of events that contain “actions”.  In the upper-left quadrant of the window, the default events contain actions like “Birth”, “Position”, and “Speed”.  These actions contain parameters similar to the ones you saw in snow and super spray earlier.  These parameters are displayed in the upper-right quadrant of the window when you’ve selected an action in the particle flow view.

An age test connected to a material change

An age test connected to a material change

The lower right quadrant is called the “depot” and it provides access to all of the possible actions in particle flow.  You can drag and drop these actions into the events in the particle flow diagram in order to affect your particles.  For example, if we wanted to change the particle material after 30 frames, we’d use an age test, followed by a “Material Static” action.  This effect is shown on the right.  The resultant particle flow diagram is shown on the left. Finally, the lower-right quadrant shows you a quick description when you select an action from the depot.  It’s useful for understanding if the action you’ve selected will actually do what you want it to.

Particles over 10 frames old turn blue.

Particles over 10 frames old turn blue.

Whew!  That’s a lot to take in, huh?  Take your time and don’t get overwhelmed!  This will feel like second nature to you in one or two projects.  Even better, you’ll be adding a skill to your toolset that will make you a much more valuable artist.

Above you saw how I created a custom event that would have never been possible with ordinary particle understanding.  In this way, I can create a wide variety of complicated effects for both still renders and animations.  Let’s try making one more complex interaction, and then we’ll call it a day.

The green balls are the onces that bounced.

The green balls are the onces that bounced.

I’m going to create a deflector in my particle flow that’s going to bounce the balls off of the floor.  When the balls bounce, I want them to turn green, and get smaller.  I’ll do this by creating a “Collision Test” at the very end of “Event 01″ which will ensure that the collision test takes place after the age test.  This way balls that bounce will be green regardless of their age, but blue balls can bounce and turn green.  In the upper-right quadrant, when I select the collision test I created, I can set the floor deflector as part of the particle flow system.  Once the planar deflector is in place, I can simply drag a “Material Static” and “Shape” actions into the particle flow diagram, and link the event into the flow diagram.  It’s important to note that I need to link the age test into the final collision event, or I’ll end up with blue spheres falling through the floor and green sphere’s bouncing back up!

The final particle flow.

The final particle flow including the "blue" age test, and the "green" collision test.

Key Takeaways
  1. Particles save you time – The fact is that you shouldn’t have to model large numbers of objects very often, and even reactor can only go so far.  You’d be surprised how applicable particles are in working with 3dsMax.  Any effects that need a large number of objects can be replicated using the standard particle tools available in the program.
  2. Deflectors are for control – Use deflectors to control your particles.  Think of them as the banisters on the side of the freeway.  Your particles need to know where they aren’t allowed to go.  This means anything from preventing penetration of walls and characters, to handling complex interactions like a car plowing through gunfire.
  3. Forces are for flow – Use forces to direct your particles.  This is different from deflectors because you’re providing the impetus for your particles do what they were intended to do.  Think of forces as the freeway itself- it tells your particles where they’re expected to go.
  4. Particle Flow is amazing – Particle flow is, indeed, amazing.  It gives you the ultimate level of control over particles in 3dsMax.  You can set up infinitely complex rules that govern how your particles look, where your particles go, and how they’re presented when rendered.  You can link age to material like we did in the example above, but don’t let that limit your imagination!  Make particle flow rate variable over time, or try making your particles glow using mental ray materials!  The sky’s the limit.

I hope you’ve enjoyed this particles walkthrough.  If you have any questions or comments, feel free to leave them on this post, or e-mail me at MrBluesummers@MrBluesummers.com  As always, take care.  Happy modeling.

Deflectors

Deflectors are ways of controlling particle flow by preventing them from penetrating geometry that’s supposed to be solid. But why not have an option to prevent penetration of any polygons? Because the process can become processor intensive very, very quickly. While I’m not saying you need to use deflectors sparingly, you should give 3dsMax the luxury of some approximation. If your space-ship is a flying saucer, just approximate it with a squashed sphere.

That said, let’s have a look at the various deflector types! Imagine deflectors as a combination of 2 factors; shape and functionality.

Shapes
Demonstrating deflector shapes.

Demonstrating deflector shapes.

There are three shapes in the deflector selection; spherical, planar, and universal. The first two are self-explanatory; they’re shaped as the name suggests. The universal deflectors are based on geometry that you specify. This means you can have that battle cruiser pushing asteroids out of the way perfectly. However, remember that this could tax your system heavily, so it’s a good idea to create a low-polygon mesh that can act as a proxy for the real 3d model.

In the image on the left, I show you how each of these shapes act. I’ve created mesh objects to represent the 3 deflectors in the render. The torus object is an approximated version using much fewer polygons than the rendered object has.

Functionality

Next, there are three functional flavors of deflectors; ordinary, dyna-flect, and omni-flect. The first type of deflector is a highly simplified version of the deflector idea.  Think of these as similar to our spray versus super spray concept described earlier. The next, dyna-flect, is for use with reactor objects and other reactive bodies. You’d use it when you need the target object to respond to being struck by particles (like tank armor deflecting bullets but getting dented).

Very briefly, what makes omni-flect deflectors special compared to ordinary deflectors, is that they provide many additional features. Allow me to summarize them here:

  1. Reflection parameters – the ability to tweak how “bouncy” particles are as they strike the deflector.
  2. Refraction parameters – for particles that penetrate the deflector, you can chose to have some of them follow a “tweaked” bearing. Note that reflection is calculated before refraction, so if you wanted half of the particles reflected and then the other half refracted you’ll need to set 50% reflection and 100% refraction.
  3. Friction parameters – for glancing angles and particles that’ve come to rest on the deflector, the friction parameter helps them slow to a stop. This is useful for large numbers of objects subject to gravity.
  4. Spawn reactivity – for particles that have options controlling how they spawn on collision, these parameters let you tweak that for each deflector. For example, if your sparks strike concrete, they’ll break apart and spawn more sparks, whereas if they hit the welder’s clothing, they could just stick and then die in a few frames.

Forces

Forces allow you to direct the flow of 3dsMax particles without having to bounce them around with deflectors.  Think of forces as the “go here” command to the deflector’s “don’t go there” command.  You can combine forces to create very specific and complicated effects like galaxies, tornadoes, and harsh weather effects.

You create and bind these forces in the same way that you would for a deflector.  Just select the object, click-drag to create it in your scene, and then use the “Bind Spacewarp” tool to link it into your particle system.  Let’s take a look at each type of particle emitter in 3dsMax.  To aid in visualization, I’ve included some of the images from the help document.  I’m sorry I can’t include them all; there are a lot of space warps in 3dsMax!

  1. Push - Exactly as it sounds; this force will consistently push particles in a single direction.  This force is acceleration, so the older a particle is, the faster it’ll move!
  2. Motor - Operates similarly to the push force, but it applies a rotation at the same time.  Remember spin art? It’s a lot like that.  Because the “Motor” icon rotates your particles around it’s axis, the orientation is important!
  3. Vortex - Operates essentially like a push and a motor at the same time.  It applies a “swirling” motion in order to form a funnel similar to a tornado, black hole, or water spout.
  4. Drag - Lowers the speed of particles as they age.  You know how bullets slow down quickly as they enter water?  And that’s why action heroes always jump off the boat in order to get away from the bad guys?  That’s the effect that the drag force creates.
  5. Pbomb - Provides a shockwave that blows particles apart.  Very simple to implement because it is essentially only timing and intensity parameters.
  6. Path Follow – Forces particles to follow a spline as they move.  The key to remember here is that you can either have the particles follow the path as they exit the emitter, or follow the path as they come near a certain area.
  7. Gravity - Operates exactly as it sounds.  Gravity exerts a constant, uniform pull on all particles in a given direction.  You can also exert spherical gravity, which is very fun for modeling little galaxies and watching them congeal!
  8. Wind - Wind is a lot like gravity in that it applies an omnipresent, uniform force from a direction.  However, wind has many more options for simulating turbulence and non-uniformity over time.  In conjunction with snow or blizzard particle generators, you can make some very convincing weather effects.
  9. Displace - A very fun space warp.  The displace operation will deform both particle systems and geometry!  This is a big deal because it helps you bridge the divide between special, custom objects (like your character) and particles (like rain).

Learn more about advanced particle flow on the next page!