Jump to content

Looking Up Amount Of Frames Emitter Hits


priel

Recommended Posts

Hi,

We're trying to set up a system that emitts a known amount of particles over a certain period of time (to be preciese,-the amount of frames that an object goes thru a plane or floor in our case). Right now we are using $HITTIME to birth the particles when the emitter hits the "floor". However, this is not working as slick as we would have liked, since one has to manually calculate the amount of frames the object hits the floor, and then divide the total amount of particles we want with that number of frames,... so that not all the particles are generated at the first hittime event. Is there any way to calculate the amount of frames that hits are generated before hand, so we could automate this in the source pop?

Cheers,

Peter.

Link to comment
Share on other sites

First thing that comes to mind is to save out your geometry with an attribute added that marks the collision frames. Then read the geometry back in for your sim but use the collision attribute as your activation control in the source POP. You can calculate the duration of the collision to get the correct number of particles emitted per frame using CHOPs (e.g. using the Count CHOP and the icmax expression).

john

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...