Jump to content

Whitewater spray- pop replicate on velocity


mentalgutiar

Recommended Posts

Hey guys, 
Im having trouble using the popreplicate on an extra whitewater spray cache. I want to replicate based on v but It will not generate any points even if I crank it. The particles are cached and I have all the attributes in there including velocity but still cannot get it to replicate any particles based on their velocity?

 

Cheers

Link to comment
Share on other sites

Something like the file attached?

You can do 'emit from attribute' in the point replicate. So all you would need is to define a 0 to 1 float attribute to drive that dop. I called that attribute 'birth_chance'.

Your speed would be calculated by taking the length of you velocity vector:

length(@v)

 And you can refit that speed value to isolate the faster points for replication:

f@birth_chance = fit(@speed, 1, 6, 0, 1)

You can also multiply this by a refit of the spray attribute to narrow it down further to just spray particles within a certain threshold.

f@birth_chance = fit(@speed, 1, 6, 0, 1)
            *
            fit(@spray, .3, .5, 0, 1);

I also isolated these new replicated spray particles in a pop group, so that they can be ignored by the pop replicate - otherwise you have cloned points creating cloned points which gets messy quick.

 

If you need additional help, upload your .hip workfile so we can get a better sense of how you're working

flip_whitewater_from_v.hipnc

  • Like 1
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...