PDA

View Full Version : lay particles to a surface...


altruizine
01-17-2003, 11:50 PM
Hello! I'm currently working on a project where I'll need to have many object spread across an irregular surface.

I've written the expressions I needed to arrange particles in the pattern I need across the xz - which works great... but now I need to drop those particles straight down onto an irregular nurbs plane so that they retain their xz positions and rest on the plane (So I can then instance my objects to them...)

Would anyone happen to know the best way to do this? I'm dealing w/ 11k particles or so.

Thanks!

-JF

mark_wilkins
01-18-2003, 12:20 AM
Sure! You have to select the surface and the particle object and make the surface a goal (I think there's a "Goal" menu item on the Particles menu but since I'm moving and my Maya machine's packed up I can't really go look.)

The easiest thing to do at this point is to assign goalU and goalV attributes to each particle that correspond to the location on the surface where you want each particle to go.

Another approach that MIGHT work is to apply a gravity field to the particles and then create a particle expression, set to run after dynamics, that sets each particle's acceleration to zero when it's gotten to the surface. I haven't fully thought through how to make this work though, and it's a slightly more skanky solution.

Maybe there's a more clever way out there that I haven't thought of?

By the way, where things get really neat is when you animate the goalU and goalV to get the particles moving around on the surface. This is a part, for example, of how David Allen at PDI built the water droplet simulation for the Spyder sequence in Minority Report.

-- Mark

CGTalk Moderation
01-14-2006, 05:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.