Jump to content

Emit from points(ordered) in new POP DOP


rich_lord

Recommended Posts

In the old POP context, I could emit particles from a bunch of points in point order(using the points(ordered) method). I cant find out how to do this in POPS DOPS?

 

Is there a simple way to do this still?

 

Ive attached a file with the old POPS method in it, and an incomplete POP DOP method.

 

Thanks!

pops.hip

Link to comment
Share on other sites

One quick dirty trick. It should be good enough to give you an idea. You can make necessary changes in it  as per your requirement  or to make it more efficient.

*Lets say your source geometry has 100 points in it.

*You want 7 particles to be generated per frame in point order manner from your source geometry( from points 0 to 6)

*For second frame it should select next 7 points to generate particles (from points 7 to 13) and so on....

*you can use modulus operator (%) for this selection.

*You need to do a trick when this selection point number goes beyond total points in the source geometry (pls refer attached file. Till frame no 14 you have already selected 14*7 =  98 points, for frame 15 it should select remaining 2  points (point 98 and point 99 ) and also start selection for the remaining 5 points from start( from point 0 to 5) ).

 

Go inside popsource dop and keep only these points from the incoming geometry. Particles will be generated from these points.

 

EDIT: edited the file a bit, replaces constant value(100) by npoints expression , added emission type options point ordered and prim center ordered.

pop_solution.hipnc

Edited by sadhu
Link to comment
Share on other sites

This is useful info Sandeep - Thanks!

I can understand how it works, though im not sure i'd of been able to write that expression myself........

 

I'll study it and try to rewrite it myself to make sure I get the concept. 
 

Thank you!

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