PDA

View Full Version : partikles disapear...


kweso
09-03-2009, 06:11 PM
hello,
if i use a per particle delay script on more than one goal,
all my particles except for the first one disappear. maybe
you can help me....

in the first example i use the delay-script but just one goal:

http://www.kw350.com/tmp/anim1.gif

i have the two other particle clouds as a goal.
goalLine0 and 1 and goalExp and goalLength are custom
attributes on my first (active) particles. where the goalLines
are keyframe-animated.

this is my script:

int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalPP = `getAttr -t $wert particle1.goalLine0`;


in the second example i use two goals but i have no time-delay:

http://www.kw350.com/tmp/anim2.gif

the script:

int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalWeight0PP = particle1.goalLine0;
particleShape1.goalWeight1PP = particle1.goalLine1;



suddenly in the third example, where i combine the two things,
almost all particles disappear:

http://www.kw350.com/tmp/anim3.gif

and the script (btw: runtime after dynamics):

int $frame = particleShape1.currentTime*25;
float $particlevalue = particleShape1.particleId/(particleShape1.count-1);
float $exp = 1/particle1.goalExp;
int $wert = $frame-(pow($particlevalue, $exp))*particle1.goalLength;
particleShape1.goalWeight0PP = `getAttr -t $wert particle1.goalLine0`;
particleShape1.goalWeight1PP = `getAttr -t $wert particle1.goalLine1`;


here you can download the scenes (http://www.kw350.com/tmp/scenes.zip)

can you tell me why the particles disappear? or how i can create a similar effect in another way?

thank you very much!!
kws

kweso
09-11-2009, 08:34 PM
hello,
since nobody seems to have a solution for me, i wanted to ask, how you would
do such kind of animation in maya...

i want particles in form of little blocks (instancer) to form different shapes. like this one. (http://www.youtube.com/watch?v=0JTQyrKNGjE)
this is made with an emitter. so the particles come one after another.
but i want to do it with eisting particles and more goals. thats normally no problem.
just make several goals for the particles and animate the goalweight. but i dont want
the particles to go all at once. i want to start with a single one and the others
following slowly but getting faster...

i dont know how to do that exept for the idea of my first post.
so how would you do that...

thx for any ideas...
kws

kweso
11-08-2009, 11:00 PM
i am sorry. one last desperate try. any ideas?...

stooch
11-09-2009, 01:29 AM
works fine here on maya 2010, except all particles seem to go at once.

TheRispo
11-09-2009, 02:27 AM
mhhh... maya 2009 at home.. and I get some weird stuff looking at the component editor.
http://img33.imageshack.us/img33/9840/componenteditor.jpg
I'll take a closer look tomorrow at work in maya 2010 and see if I get the same weird behavior, and try to make it work somehow.

kweso
11-09-2009, 07:36 AM
thx guys. iŽll get the trial of 2010. but i guess stooch, you used the "two goals simultaniously"-version. anyway thx for your help. wounder what the entries in the component-editor mean. some kind of zero-division?

hf

stooch
11-09-2009, 07:58 PM
thx guys. iŽll get the trial of 2010. but i guess stooch, you used the "two goals simultaniously"-version. anyway thx for your help. wounder what the entries in the component-editor mean. some kind of zero-division?

hf

they look like error output into your attributes... normally, really small or large numbers use scientific notation.

sumo545
03-19-2010, 06:36 PM
Did you ever find a solution besides using Maya 2010? I am having the exact same problem in 2008 and I can't use a different version unfortunately. Let me know what you found. Thanks.

sumo545
03-19-2010, 08:25 PM
In rebuilding a test scenes, I noticed the particles only have problems with mutiple goals when their PP goal weight is less than zero. To fix them disappearing and getting the -1.#IND as positions, keep their PP goal weight above zero. I start mine at .001 and there is no noticeable movement and they act how they should. Hopefully this isn't too late for anyone else out there working on this type of thing.

kweso
03-20-2010, 08:41 AM
oh my! iŽll test that later... would buy you a beer if that works... :beer:

kweso
03-20-2010, 11:13 PM
omfg! it actually works
tysm

CGTalk Moderation
03-20-2010, 11:13 PM
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.