Animated heightfield with consistent erosion per frame

   989   2   1
User Avatar
Member
1 posts
Joined: May 2018
Offline
Any ideas on how to create a setup where a HeightfieldErode SOP would erode e.g. 20 frames to get the desired look, but do that for every frame in the sequence, so each frame of an animated heightfield would receive an identical/consistent erosion amount.

Obviously the erosion works by the time slider advancing per frame, so that means the first frame of the animated heightfield would get 1 erosion iteration, the second would get 2 etc. etc.

I've tried nesting the erode in a for loop with feedback, with a time shift sop set to freeze on the desired erosion amount frame, and a time shift sop prior to the erode which would update with the value of the for loop iteration count. The for loop return iteration (step-through value)would then have the current frame number passed in, which in theory would mean "for each frame, run the erosion to frame 20, then step to the next". But as the Heightfield Erode seems to require the "reload" button being hit when the data being fed into it is changed, this makes the setup extremely buggy.

Would be great to hear some suggestions.

Thanks
Edited by ct_vfx - May 4, 2021 09:28:46
User Avatar
Member
2 posts
Joined: April 2021
Online
having a similar issue.. I'd like to have an animated heightfield that gets eroded the same amount on each frame. I also tried nesting the erode in a for loop but couldn't get it working. did you ever get it sorted? thanks!
User Avatar
Member
18 posts
Joined: July 2018
Online
You can try PDG. Extract each frame as a workitem that needs to be erode for 20 frames, then use the index as $F in when saving the geometry.
  • Quick Links