SimplyMaya Forums

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

Home / forum / Lighting & Rendering, Dynamics & Effects, Texturing / Dynamics & Special Effects / Particles that die on contact with a surface ?
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 16-03-2008, 02:17 AM   #1
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Particles that die on contact with a surface ?

Hi everybody

I have a question regarding maya particles.

Ok I have a scene with a swimming fish (my great white shark)
I have created a particle emitter which uses instances of a soft body nurbs sphere to simulate bubbles.

I have placed this just below the camera and parented it to the camera so it will move where the camera moves.

Its to give the impression of somebody breathing underwater.

Ok I have created an expression that will kill any particles that rise above the water line so that maya doesn't get bogged down with tones of geomtry.

Ok the problem is... My camera moves quickly when the shark attacks (camera moves backwards very quickly) and in turn the bubbles get sucked into his mouth. Now I have added the shark geometry to collide with the bubble particles so the bubbles gather inside his mouth as he swims.

Now is there a way or expression I could write that will say to the particles. You must die when you touch this surface ??

I have tried the following to sort this problem out, I have increased the speed of the particles towards the end of the animation so that the particles move up over the snout instead of in his mouth.

Also I have tried adding an air field inside the sharks mouth so that it will blow out the bubbles so they dont get too many.

But is there a way to have the exra particles die on contact with the surface ??

if anybody can help that would be great.

thanks

Andy Gee
Andy Gee is offline   Reply With Quote
Old 16-03-2008, 02:30 AM   #2
NeoStrider
Registered User
 
NeoStrider's Avatar
 
Join Date: Jun 2004
Location: Cleveland, Ohio (USA)
Posts: 1,541
Thanks: 0
Thanked 2 Times in 2 Posts
Default

why not create a sphere or other collision object that entirely blocks the shark's mouth, but then hide the object or make it non-renderable?
__________________
Accept no substitutions.
NeoStrider is offline   Reply With Quote
Old 16-03-2008, 02:39 AM   #3
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Simple solutions

That will work I suppose

I just wanted to know if there was way of killing particles on contact of an object ?

thanks

Andy Gee
Andy Gee is offline   Reply With Quote
Old 16-03-2008, 02:47 AM   #4
NeoStrider
Registered User
 
NeoStrider's Avatar
 
Join Date: Jun 2004
Location: Cleveland, Ohio (USA)
Posts: 1,541
Thanks: 0
Thanked 2 Times in 2 Posts
Default

there's gotta be, but i'm gonna assume that some coding might be involved... i haven't tinkered with particles since my particle animation class... that was about 7 or 8 years ago =P
__________________
Accept no substitutions.
NeoStrider is offline   Reply With Quote
Old 16-03-2008, 02:56 AM   #5
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

Check the help under Particle Collision Events to be sure, but I believe that if you create a particle collision event you can just leave the three checkboxes for "Emit" "Split" and "Random # Particles" off.

Then just set the "Num Particles" slider to 0.

Try that, and let us know if it helped at all
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi is offline   Reply With Quote
Old 16-03-2008, 02:56 AM   #6
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Neo Strider

will try your method out

Thanks

Andy Gee
Andy Gee is offline   Reply With Quote
Old 16-03-2008, 03:02 AM   #7
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey ragecgi

Will try that out, Just looking at the particle collision event thing.

but not sure how to use it.

Just wanted to ask is there a way to have 2 emitters have 2

particle collision geo connectors for 1 object ??

I know that you can have multiple geo collisons for different

objects in your scene, was wondering if you can do it the other

way, multiple emitters with different collsion states for a single

object ?

thanks

Andy Gee
Andy Gee is offline   Reply With Quote
Old 16-03-2008, 05:28 AM   #8
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

Quote:
Originally posted by Andy Gee
Just looking at the particle collision event thing.....but not sure how to use it.
No prob
Find out more about how to use the Particle Collision Event Editor in the help by hitting F1 while in Maya and browsing to:

Using Maya
>Dynamics and Effects
>Particles
-Particle Collisions

There are at least 4 tutorials in there along with the standard help text to help you get what you want
Quote:
....multiple emitters with different collision states for a single object ?
Yep
Automatically when you click "Create New Event" an incremental number value is assigned to the new event, and added to the events list on the right, per particleShape.

You can even assign global procedures/expressions to the events as well, all within the editor.

Good luck, and remember to read all the help regarding the Particle Collision Event Editor, as it helped me to double check my answers here

Good luck!
__________________
Israel "Izzy" Long
Motion and Title Design for Broadcast-Film-DS
izzylong.com
ragecgi 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.