Maya particles are tremendously supple and can imitate a wide variety of substance. Single input to their suppleness is their aptitude to occurrence geometry and derives alteration in sequence from language. James Chandler, a Maya teacher for Westwood Online academy, offers a technique for “planting” rocks crossways an outside with instanced particles.
To plant rocks, go after these steps:
1. Make a new-fangled scene. Make a NURBS or polygon outside that determination serve as an earth plane. Button to the Dynamics menu set. With the outside chosen, decide Particles > Emit From Object > ❒, button Emitter Type to outside, set Rate (Particle/Sec) to 10, set standard velocity to 0, and click the make key. An emitter is shaped and particles are haphazardly generated crossways the external when you engage in recreation the Timeline. Because standard velocity is 0, though, the particles appear on the outside but do not shift. (If Emitter Type is left on Omni, each highest point becomes its own omni emitter and the particles bunch jointly.)
2. Choose the atom1 node and open the quality Editor. Button to the particleShape1 tab. Click the universal key in the Add lively Attributes part. The put in quality window opens. Button to the atom tab. tube to the base of the list and emphasize userVector1PP. This is a general per-particle quality that you can repurpose. Click the insert key at the base of the window. emphasize userVector2PP. Click the insert key again and shut the window.
3. Inside the Per atom (Array) Attributes part, userVector1PP and userVector2PP are scheduled as novel per-particles attributes. RMB clack the meadow to the correct of also attribute and decide formation appearance from the shortcut menu. The appearance Editor opens in the subdivision formation appearance form. In the employment region, go into this code:
float $sX = rand(.5,2);
float $sY = rand(1,2);
float $sZ = rand(.5,2);
particleShape1.userVector1PP = <<$sX,$sY,$sZ>>;
float $rX = rand(1,359);
float $rY = rand(1,359);
float $rZ = rand(1,359);
particle1Shape1.userVector2PP = <<$rX,$rY,$rZ>>;
clack the make key at the base of the window. If the appearance is winning, the utterance Expression appears in the userVector1PP and userVector2PP fields in the Per atom (Array) Attributes segment. Shut the appearance Editor.
4. Replica an easy rock. Choose the shock, Shift+select the subdivision node, and decide Particles > Instancer (Substitute). Engage in recreation the Timeline from border 1. An instanced amaze appears at every subdivision place. At this point, all the instanced rocks are the similar dimension and have the similar turning round.
5. choose the subdivision1 node and unlock the quality Editor. Control to the particleShape1 tab. In the Instancer (Geometry Replacement) segment, control Scale to userVector1PP and turning round to userVector2PP. Play the Timeline on or after border 1. The rocks take on dissimilar weighing machine and rotations. You can generate variations in the rock prototype by choosing dissimilar principles for the emitter’s Min coldness, Max coldness, and Speed accidental. (Stay Min Distance and Max Distance principles equivalent or the rocks strength fades away.) You can also allocate the unique astound to a material with a consistency, thus allowing the feel to come into view on every one the instanced rocks. Just the once the rocks are adequately increase absent on the earth plane, you can create their position enduring by selecting the subdivision1 node and choosing Solvers > Initial State > Set For Chosen. (Employ concern, as this step cannot be undone.) From that point onward, the rocks come into view in put from the very foremost border. To keep away from creating novel rocks at that tip, set the emitter’s Tempo (Particle/Sec) to 0.
Related Posts in this Category
Filed Under: Maya Basics
About the Author: