Maya for 3D Printing - Rapid Prototyping
In this course we're going to look at something a little different, creating technically accurate 3D printed parts.
# 1 24-03-2003 , 10:59 PM
dave_baer's Avatar
Moderator
Join Date: Sep 2002
Location: Plantation, Florida
Posts: 1,568

RAMPS ON PARTICLES

Making exhaust.

I need an idea of how to apply a ramp to a particle so that it becomes more transparent as it travels farther away from the emitter. Is this done in the properties or do I need a mel script for it?


Dave Baer
Professor of Digital Arts
Digital Media Arts College
Boca Raton, Florida
dbaer@dmac.edu
# 2 25-03-2003 , 01:31 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
You need to add an opacityPP attribute to the particleShape and map it with a ramp.

This is done in the attribute editor by clicking the Opacity button under Add Dynamic Attributes.
From the dialog that pops up choose Add Per Particle Attribute.
Now you should see an opacityPP under the Per Particle (Array) Attributes section.
Right-click on the field next to it and choose Create Ramp. A text "<- arrayMapper1.outValuePP" appears in the field.
Right click on the text and choose "<- arrayMapper1.outValuePP -> Edit Ramp".
By default the ramp is a white to black (bottom to top) gradient and is driven by the particle's age. This means that at birth the particle is completely opaque and at death it's completely transparent. Edit the ramp and see what happens...
To add more randomness you might want to change the particles lifespan to Random Range and play with the settings.

I know this wasn't exactly what you asked but if you really want the opacityPP be driven by the distance travelled you'd need to write a per particle runtime expression which could get a bit involved (but not impossible)...

Hope this helps...


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!

Last edited by kbrown; 25-03-2003 at 01:36 PM.
# 3 25-03-2003 , 03:11 PM
dave_baer's Avatar
Moderator
Join Date: Sep 2002
Location: Plantation, Florida
Posts: 1,568
Actually, kbrown, that's perfect. Thanks!

I remember that method. I used it in school, that's why I knew to add a ramp to the particle to make it fade. I just couldn't remember the method to do it. (getting old)...

user added image


Dave Baer
Professor of Digital Arts
Digital Media Arts College
Boca Raton, Florida
dbaer@dmac.edu
# 4 25-03-2003 , 03:54 PM
ragecgi's Avatar
Registered User
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Dam Kbrown! hehe... you got to the post before I did.. hehe...

Been out of town...

Great answers btwuser added image Thanks!


Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads