Jump to content

Trail SOP help


Recommended Posts

Hi all,

I'm having what I'm expecting is a very simple issue with the trail SOP. As my points are dying/ptnum is resetting, I'm getting glitches at the ends of my trails.

Obviously if it was a POP sim, I could just trail > cal vel, then append an add SOP to ad a primitive based on id, however I can't figure out how to do it using the @ ptnum variable in the attribwrangle.

Is @ ptnum is actually just the wrangle variable, and not actually the point attrib? Been scratching my head on this for a while.

.hipnc attached, any help very much appreciated.broken_trails.hipnc

Link to comment
Share on other sites

Hi Tim,

I think the trail is actually doing the right thing, since your point number is not changing only the positions, the points go suddenly from one end to another, and that is causing the velocity and the added geometry to suddenly get large. I attached a cheat way where you just delete those long edges caused by this... and after this you could probably keep track of the point number that belongs to the deleted primitive, do a point cloud look up for these points to their neighbors and use average v as velocity and compute the other end of the line based on this velocity and add that line? Sorry I could not think of a direct way to fix it right before the trail so that you don't need to do all these post process... Hope it helped!


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.

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