Animated heightfield with consistent erosion per frame

   693   0   0
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
  • Quick Links