SimplyMaya Forums

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


SM Forums / Maya Questions / Dynamics & Special Effects / Particles that die on contact with a surface ?

Dynamics & Special Effects Maya Particles, nDynamics, Fluids, Rigid Bodies & General VFX

Join the conversation. Reply to post
 
Thread Tools
16-03-2008, 02:17 AM   #1
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
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
  Reply with quote
16-03-2008, 02:30 AM   #2
NeoStrider
Registered User
 
NeoStrider's Avatar
 
Join Date: Jun 2004
Location: Cleveland, Ohio (USA)
Posts: 1,541
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.
  Reply with quote
16-03-2008, 02:39 AM   #3
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
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
  Reply with quote
16-03-2008, 02:47 AM   #4
NeoStrider
Registered User
 
NeoStrider's Avatar
 
Join Date: Jun 2004
Location: Cleveland, Ohio (USA)
Posts: 1,541
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.
  Reply with quote
16-03-2008, 02:56 AM   #5
ragecgi
Registered User
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
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
  Reply with quote
16-03-2008, 02:56 AM   #6
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
Hey Neo Strider

will try your method out

Thanks

Andy Gee
  Reply with quote
16-03-2008, 03:02 AM   #7
Andy Gee
Registered User
 
Join Date: Nov 2007
Posts: 27
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
  Reply with quote
16-03-2008, 05:28 AM   #8
ragecgi
Registered User
 
ragecgi's Avatar
 
Join Date: Sep 2002
Location: Minnesota, USA
Posts: 3,709
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
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Particle emitter problem - particles stay on surface Kenio1979 Maya Basics & Newbie Lounge 8 09-03-2013 10:06 AM
Particles moving on a surface! Please Help! Eurofiles Dynamics & Special Effects 4 31-07-2006 06:55 AM
Particles moving on a surface! Please Help! Eurofiles Work In Progress 1 28-07-2006 02:04 AM
Particles to surface chermandesign Maya Basics & Newbie Lounge 6 01-11-2005 04:09 PM
surface emission particles inheriting texture lori_hunter Dynamics & Special Effects 3 14-03-2005 12:55 AM