Keep up-to-date with Free tutorials!!


Sign up to our twice-monthly newsletter today for the latest tutorials, interviews and product information.

Sign me up to receive third-party emails from 3dtotal's partners, too!

- Latest news
- Exclusive Shop Offers
- Preview early content
- Plus much more


Not Ready to take that step? OK, Why not just Subscribe to the RSS Feed

submit tutorial
1 | 2
FX Particles and Dynamics in Maya

By Mike Zugschwert
Web: Open Site
| Your Rating:
rating star nonerating star nonerating star nonerating star nonerating star none
(0 Votes)
| Comments 0
Date Added: 27th May 2015
Software used:

I also want the particles to interpenetrate with the glass a little so I can choke my mesh without leaving a gap between the mesh and the glass. To do this, I set my Collide Width Scale to .7.

Under Liquid Simulation there is an attribute called Liquid Radius Scale. This will influence how much the particles will interpenetrate with each other. To get a smooth surface when meshing I will want them to overlap a lot. The default value is 1, which is way too high. I drop it down to .5, but keep in mind that the more I allow them to overlap, the more particles it will take to fill the glass.

The viscosity will change the behavior of the liquid quite a bit. Thicker liquids like honey or syrup have a high viscosity, while water has a low viscosity. I also key my emitter rate to cut off after 140 frames so it doesn't continue to pour forever. I may need to adjust the timing after seeing the first simulation. My final settings can be seen in Fig.06.

(Fig. 06)

For faster playback, I can cache my simulation. In the nCache menu, with my nParticles selected, I pick the option box for Create New Cache. Here I set my directory as well as other options. I prefer to use one file per frame so that in the event of a crash, I can pick up from where it stopped instead of risking the whole cache becoming corrupted. Also, after I cache, there is a cache description info panel at the bottom of the Cache tab in the Attribute Editor. Here I can see what all of my attributes were when I created the cache, which can help me keep track of which cache had
which settings.

This simulation took 17 minutes to do 300 frames. The final particle count was 34,750.

2030_tid_zzz9.jpg That looks pretty good for a first simulation, although I would like to add some animation to the bottle so it doesn't pour into the same spot the entire time. I would also like the glass to fill up a bit more. I would guess around 150,000 particles, which will mean a rate of around 25,000 particles per second for 140 frames. I also raise the Liquid Radius Scale to .7 and run another sim to see how it looks.

This one I let run for 380 frames and it takes 3 hours and 5 minutes to run the simulation (this will depend on the power of your system). The total particle count is 144,791.

2030_tid_zzzzchapter01_movie01.gif Now that I have a good simulation I can create the mesh. I click Modify > Convert > nParticles to Polygons. This will create a mesh in my scene and turn off the display of the particles to speed up the viewport.

The first time I do this I may not see anything on my screen or just a few blobs (Fig.07).

(Fig. 07)

This isbecause the triangle size is too high. The value will depend on my scene scale. For my scene I end up with the values seen in Fig.08.

(Fig. 08)

Threshold and Blobby Radius Scale will influence how the mesh blends between particles. Threshold chokes back the mesh based on the particle density.

Mesh Triangle Size will influence the size of the polygons that generate the mesh. Max Triangle Resolution will automatically change my Mesh Triangle Size if the voxel grid that generates my mesh gets larger than the resolution value. Basically, if I set it to 100, and it takes more than 100 polygons to make the full width of my mesh along one axis, it will change the triangle size. Most of the time changing the triangle size throughout the simulation will cause the mesh to pop between frames, so I set it pretty high to avoid that.

Motion Streak will stretch out the shape of the particles in the direction they are traveling, helping with motion blur. Mesh Smoothing iterations will also help to smooth out the mesh.

I prefer using Quad Mesh for the Mesh Method because it allows me to work with a lower poly mesh and then smooth the mesh using the 3 key. Also I make sure Velocity Per Vertex is checked because I plan on rendering with motion blur.

Then I throw some shaders onto my geometry, add some lights and a floor plane, and start rendering it out (Fig.09 – 10).

(Fig. 09)

(Fig. 10)


Related links:

Download FX Particles and Dynamics from the shop
Check out Mike's site for more!

< previous page
1 | 2
Related Tutorials


Gallery Image.

Keywords: Softimage, Maya, vehicle, sci-fi

Go to tutorial
rating star fullrating star fullrating star fullrating star fullrating star full (35)
Comments 1 Views 11690


Gallery Image.

Keywords: water, splash, realistic,

Go to galleries 1
rating star fullrating star fullrating star fullrating star fullrating star half
Comments 10 Views 96510


Gallery Image.

Keywords: maya, mental ray, rendering, irradiance, particles,

Go to galleries 1
rating star fullrating star fullrating star fullrating star fullrating star none
Comments 0 Views 37554


Gallery Image.

Keywords: object, dynamic, piston, maya,

Go to galleries 1
rating star nonerating star nonerating star nonerating star nonerating star none
Comments 0 Views 16171
Readers Comments (Newest on Top)
no comments!
No comments yet. Be the first to comment!
Add Your Comment