SimplyMaya Forums

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

Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 15-02-2004, 05:25 AM   #1
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default die a silent death

Hey gang,

I've got a very simple particle system using instanced geometry that has gravity and collides with a plane and comes to a stop.

What I want to do next is have each geometry object fade out when it comes to a stop. I've thought of trying to use a collision event, or just to script when the velocityPP = 0, but the thing is when I change the transparancy value for one, they all fade out since each instance uses the same shader.

Can anyone think of how to do this?
Dann is offline   Reply With Quote
Old 15-02-2004, 10:04 AM   #2
dirack
Registered User
 
dirack's Avatar
 
Join Date: Oct 2003
Location: Cage #42 of the Asylum
Posts: 396
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try either assigning a ramp to the radiusPP, and tweak it until you like it, or try assigning an expressions to the Y position, age or velocity, and create a vertical asymptotus in it. If you want (on that) more info, just ask
dirack is offline   Reply With Quote
Old 15-02-2004, 10:51 PM   #3
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I can't shrink it, I need to fade it out. Thank anyway.
Dann is offline   Reply With Quote
Old 15-02-2004, 11:20 PM   #4
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

add an opacity per particle array and map it with a ramp to control it.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 15-02-2004, 11:26 PM   #5
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

But Mike, that doesn't work for instanced geometry, does it? I tried that.
Dann is offline   Reply With Quote
Old 15-02-2004, 11:44 PM   #6
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

must've missed that part. I don't use instanced geometry much, but I'd have to guess that you could key the transparancy of the shader it uses.
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
mtmckinley is offline   Reply With Quote
Old 15-02-2004, 11:45 PM   #7
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

It should because you're not fading out the original instances persay, more the actual "newly spawned" particle object(s) and its' contained instances via the opacityPP.

Understand? If not let us know

Basicly, when you make the collision event, you now have a totaly new/separate set of instanced geometry.
It may be all coming from the same instanced object, but the new instances are separate from the original ones.

So you are not affecting the original instances with the opacityPP, just the new one(s) created by the collision event.
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote
Old 16-02-2004, 12:00 AM   #8
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

When I try using opacityPP nothing happens, it doesn't fade like i want it. My ramp does from black to white so shouldn't it fade? Also, how do I link the fade to collision or velocity?

Here's my file in case you want to take a look.
Attached Files
File Type: ma collide_v01.ma (73.1 KB, 19 views)
Dann is offline   Reply With Quote
Old 09-03-2004, 07:36 PM   #9
satch
Registered User
 
Join Date: Dec 2002
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can't animate the opacityPP of an instanced obj, you are "instancing " a single object. A work around is to create several duplicates of your original obj, replace the texture on each of them with a copy of the original, and have each one progressively more transparent. You would then create an instance library with all of these - in order- and have your particle instances cycle through the animation. you could script them to start the cycle at a certain velocity, or create a collision event and have the orig particle die and emit this new animated instance. etc...

Hope this helpful.
satch is offline   Reply With Quote
Old 09-03-2004, 07:56 PM   #10
Dann
Registered User
 
Dann's Avatar
 
Join Date: Feb 2003
Location: Los Angeles
Posts: 695
Thanks: 0
Thanked 2 Times in 2 Posts
Default

That's what I ended up doing. Ugly work-around, but effective.

Thanks.
Dann is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.