SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

SM Forums / Maya Questions / Dynamics & Special Effects / Scattering an Object Across another Object's Surface

Dynamics & Special Effects Maya Particles, nDynamics, Fluids, Rigid Bodies & General VFX

Join the conversation. Reply to post
Thread Tools
21-06-2005, 10:05 PM   #1
Registered User
Enivob's Avatar
Join Date: Jun 2004
Posts: 3
Scattering an Object Across another Object's Surface
Hi All,

I hope this is the right section.

In 3dsmax you can scatter one object across another objects surface.

How do you do this in Maya?

I have searched the help on the word scatter and all I get is light scattering and subsurface scattering.

What is the terminology that I need, or how do you do it?

  Reply with quote
24-06-2005, 07:17 AM   #2
Registered User
Dann's Avatar
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
I remember scatter. It was nice.

The best way to do this in Maya is with particle instancing. Get ready for show and tell.

1) Create your surface.

2) Select the surface and run Particles > Emit from object

3) Set the emitter type to Surface and the Normal type to 0.

4) Select the object you want to scatter and the particle system (in that order) and run Particles > Instancer

5) In the attribute editor for the particleShape node under Add Dynamic Attributes click General. Add 2 attributes called rotPP, and scalePP with the settings: make keyable, Vector, Per Particle, Add Init State

6) rotPP and scalePP should appear in attribute editor under PP array attributes. Next to either of attributes right click and select Creation Expression.

7) add the following to the creation expression
float $scaleX = rand(1,2);
float $scaleY = rand(1,2);
float $scaleZ = rand(1,2);
scalePP = <<$scaleX,$scaleY,$scaleZ>>;

float $rotX = rand(1,2);
float $rotY = rand(1,2);
float $rotZ = rand(1,2);
rotPP = <<$rotX,$rotY,$rotZ>>;

This will randomize the X,Y,Z values of your object's scale and rotation. You can change these values to your liking.

8) Still with the particleShape node in the attribure editor > Instancer (Geometry Replacement) and set Scale to scalePP, and Rotation to rotPP.

9) Now hit play and watch your object get scattered accross your surface. You can change the scale and rot varibles to your liking. Also, by changing the emitter's emission rate, it will change the scattering pattern.

10) When you're done tweaking and want to keep what you have, run Solvers > Init State > Set for selected and turn off is Dynamic

I hope this works. Let me know if I missed something.
  Reply with quote
21-06-2013, 03:13 PM   #3
Registered User
Join Date: Nov 2007
Posts: 6
Map driven pp attributes
Hey, I hope you are still somewhere out there, although this thread is already 8 years old...
Is there a way to control the size and rotation of the particles/objects with a texture file applied to the emitting surface?

  Reply with quote

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble opening maya scene jooleyinboots Maya Technical Issues 2 03-02-2014 09:11 PM
Normal Map definitions djwaterman Lighting & Rendering 2 25-05-2012 12:50 PM
Particles moving on a surface! Please Help! Eurofiles Dynamics & Special Effects 4 31-07-2006 06:55 AM
Particles moving on a surface! Please Help! Eurofiles Work In Progress 1 28-07-2006 02:04 AM
attaching an object to a surface patrickm Maya Modeling 2 28-10-2002 04:52 AM