Jump to content

Pyro trail clusters get confused by loops


BWoods

Recommended Posts

Hi everyone, I've run into an issue and I'm looking for some help coming up with a work around. We've got a lot of effects that involve smoke trails from characters flying around and we've been using pyro clustering to make the trails. However there is one particular issue I just can't think of a solution to. The default cluster setup transfers the cluster number to a trailed collection of your source points and then finds the lowest source frame in each cluster in order to determine which frame each cluster container should be created on. This works fine normally, however if your trail loops back on itself or comes too close to where it was in world space at another point in the shot then the cluster gets confused as to which container should be used resulting in gaps in your trail. 

 

I've been trying to come up with a way to fix this procedurally but keep hitting dead ends. has anyone run into this issue before? Short of trying to convince animators to never have the characters loop back like this does anyone have any ideas on how to circumvent this problem?

 

Thanks in advance,

-Brandon

Link to comment
Share on other sites

You already have the source frame on your points, so instead of clustering based on P you could cluster based on that source frame attribute (Control Attribute on the Cluster Points SOP). And then find the lowest frame within each cluster to find creation frame.

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