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 16-03-2008, 03: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, 03: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, 03: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, 03: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, 03: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, 03: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, 04: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, 06: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

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

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.