Maya Training

Introduction to Hard Surface Modeling

Maya Training

Interiors and Furniture Vol 1 & 2 - Modeling & Cloth

Maya Training

Shading, Lighting and Rendering the Bedroom in MR

Maya Training

Robot volume one - Modeling with animation in mind

Maya Training

Spach-Alspaugh House the complete courseware

Maya Training

Burt The Cartoon Dinosaur Vol 01 - Modeling

New Maya Training

Robot Volume 02 - Hybrid Rigging
You are here > Home > SimplyMaya Community Forums
Loading

Welcome to Simply Maya

Please Sign in or Sign up for an account

Member Login

Lost your password?

Not a member yet? Sign Up!

Old 24-03-2003, 10:59 PM   #1
dave_baer
Moderator
 
dave_baer's Avatar
 
Join Date: Sep 2002
Location: Plantation, Florida
Posts: 1,568
Thanks: 0
Thanked 12 Times in 9 Posts
Default 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
dave_baer is offline   Reply With Quote
Old 25-03-2003, 01:31 PM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

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.
kbrown is offline   Reply With Quote
Old 25-03-2003, 03:11 PM   #3
dave_baer
Moderator
 
dave_baer's Avatar
 
Join Date: Sep 2002
Location: Plantation, Florida
Posts: 1,568
Thanks: 0
Thanked 12 Times in 9 Posts
Default

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)...

__________________
Dave Baer
Professor of Digital Arts
Digital Media Arts College
Boca Raton, Florida
dbaer@dmac.edu
dave_baer is offline   Reply With Quote
Old 25-03-2003, 03:54 PM   #4
ragecgi
Super Moderator
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
Thanks: 0
Thanked 13 Times in 12 Posts
Default

Dam Kbrown! hehe... you got to the post before I did.. hehe...

Been out of town...

Great answers btw Thanks!
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote

A little bit about who we are
Links you might find useful
Catch up with SimplyMaya
SimplyMaya specialises in Maya tutorials. We offer over 1,000 individual Maya training videos, ranging from basic Maya tutorials through to intermediate Maya tutorials. Our tutorials are created by instructors with industry experience and are designed to get you up and running in Maya quickly without making it seem like hard work.

Copyright © 1999-2015 SimplyMaya - vBulletin® Copyright © 2000-2015, Jelsoft Enterprises Ltd.