PDA

View Full Version : Using Multiple Particle Goals


PureMoxi
05-23-2008, 10:02 PM
http://www.ryanmcdougal.com/CGTalk/Particles/ParticleThoughts_002.jpg

I am working in XSI on something where I have multiple particle clouds in a scene. I would like the particles from cloud 1 to be attracted to goal B and the particles from cloud #2 to be attracted to goal A. However, any time I have multiple goals in a scene, the particle clouds simply find a center point between the two goal objects, even if I have a picking session for each cloud and goal respectively. This also applies if I have 10 clouds and 10 separate goal objects.

They work individually:

Cloud #1: http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003a.avi

Cloud #2: http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003b.avi

...But not together :(

Together with both goals : http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003c.avi

Anyone have any ideas...is this possible..it seams a simple thing but just doesn't work. What am I missing?

Scene File: http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003c.scn

EDIT ------------------------

Btw, I know that I can have multiple "attractor forces" in a scene to achieve this but a goal has a bit more control in the type of flocking it can achieve with the surface, point or line attributes.

with separate attractor forces and respective particle clouds:
http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003d.avi (http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003c.avi)

Scene File: http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003d.scn (http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003c.scn)

tc
05-24-2008, 01:16 AM
Hey Ryan
Do you have individual Ptypes for each particle cloud?

The Ptype is what associate to the Goal event... so if you have the same ptype in two different clouds, they will go to the same Goal.

To change the ptype you need to go in the PEmitter and change the ParType.

To inspect all the Ptypes you have in the scene, open the explorer (8), change the scope to Application and under "Scene" tree you'll see ParTypes. Theres is where all Ptype of your scene will live.

PureMoxi
05-24-2008, 09:59 PM
hey Thiago,

that's the ticket...don't know why I didn't try that. Thanks man.

...Such a wierd thing though that you cannot do it on a per cloud basis versus creating new ptype for each goal.

Well, for those of you following along...thanks again Thiago.

Video:http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003e.avi (http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003c.scn)

Scene:http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003e.scn (http://www.ryanmcdougal.com/CGTalk/Particles/Particle_Test_003c.scn)

tc
05-25-2008, 03:28 AM
Hey Ryan,
Cool, I'm glad that worked.

by the way, I love the work you guys do at Vitamin! :)

ThE_JacO
05-25-2008, 01:40 PM
hey Thiago,

that's the ticket...don't know why I didn't try that. Thanks man.

...Such a wierd thing though that you cannot do it on a per cloud basis versus creating new ptype for each goal.

Clouds are mostly meant to represent the actual particles primitive, mostly at emission level.
It's fairly typical to need different emitters and clouds to contribute to the same final result though, and that is where PType comes into play, allowing you to tag different clouds with the same property so that they act as a whole, or keeping them separate by giving each one its own property.

If you look at it in context, while maybe not immediately obvious, it does help managing work and achieving some results that would be hard to get if there wasn't a property based system to deal with simulation elements.

It also allows new particles generated inside a cloud (or different clouds) to have their own behaviour and properties.

If it helps you puzzling it out, you can think of it like a tagging mechanism that simulates something close to groups.

PureMoxi
05-26-2008, 05:58 PM
ThE_JacO - Thanks for the further explanation. As I have been playing with it more for this project over the weekend, I can see the benefits for sure. Itemizing control is always something I seek...I'm an animator first...and therefore a control freak...:) Either way, i'm sure I'll have more questions along the way and appreciate you availing yourself for some clarification.

Thiago - likewise my friend...you guys at Nervo do some hot work over there...and I always appreciate the detail you show in the forums...
---------------------------
Overall, I'll likely post something later to show how I applied this (in non-client form of course) but might be interesting for others...

Thanks again for the thoughts.

R

PureMoxi
07-23-2008, 12:05 AM
Well, I was posting for something else so I thought I would finally post the sample scene and vid of something similar to what I was applying these theories to. This sample is a bit clunky but the principles hold up. Hope it helps someone or someone improves upon it...

Sample Vid (http://www.ryanmcdougal.com/CGTalk/MultipleGoals_Test001.mov)

Sample Scene (http://www.ryanmcdougal.com/CGTalk/ParticleMotionTest_001.scn) (right click and download)

CGTalk Moderation
07-23-2008, 12:05 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.