Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Dynamics / Particle Instance Scale?
  RSS 2.0 ATOM  

Particle Instance Scale?
Rate this thread
 
35182
 
Permlink of this thread  
avatar
  • Total Posts: 3
  • Joined: 24 November 2006 05:20 AM

Hi.

Would anyone know how you scale your instanced particle geometry over time ?  I want it to get smaller the longer it’s been alive.

Thanks

Eugene



Replies: 0
avatar
  • tkaap
  • Posted: 16 October 2009 06:17 AM

First, you need to hook up scaling to your instances.

In the Attribute Editor for your particleShape node, under the Instancer (Geometry Replacement) section, set the “Allow All Data Types” box.

In the General Options subsection, change the “Scale” drop-down to be radiusPP.  This will scale each instance by the radiusPP for each particle.

Second, you need to add a runtime expression to change the particles’ radiusPP over time.

Lower in the particleShape attribute editor section, in the per-particle (array) attributes section, right-click on radiusPP, and choose one of the run-time expression options.

In the expression editor, create an expression that will shrink your particle’s radiusPP as it ages.  I set my particle’s lifespan to be a constant value of 3, so I used an expression like this:

particleShape1.radiusPP = 3-particleShape1.age;

That ought to do the trick. 

Take note: without setting the particles to die at age=3, this will make the radiusPP go into negative values, so your instances will become inverted and larger.  In that case you’ll want to clamp the result of this expression to avoid negative numbers.



Replies: 0