Jump to content

How to run erosion on multiple heightfields at once?

Recommended Posts

Guys is it possible to merge 6 different heightfields in this manner and run erosion on all of them at once? Of course I can project them all to a bigger heightfield and run erosion there (marked gray) but then I waste too much processing power on areas/heightfields I don't actually need:


Link to comment
Share on other sites

You can loop over each heightfield and apply erosion inside the loop, compile the loop and make sure to toggle Multithread when Compiled. This will ensure all the erosions will run in parallel, but you might run out of GPU memory also.

Link to comment
Share on other sites

Posted (edited)
47 minutes ago, hannes603 said:

@animatrix   ....heightfield erosion does not work in compile block bec its not compilable node...

maybe the heightfield cutout object helps ?!

I didn't realize this but looking inside it's the Timeshift SOP that's one of the culprits. So you can delete it.

Another thing you have to change is to convert the Solver SOP into a Foreach Loop network. Then you should be able to compile it.

I don't know if there are other issues that would require the use of spare parms, etc.

So it's quite a bit of work, but some advanced things do require this sort of complex manipulation to get the best performance. It's worthwhile to submit an RFE to SESI also.

Edited by animatrix
Link to comment
Share on other sites

I just tried exactly what I suggested and it works fully compiled, but it's a lot of work to replace all the expressions and many of the Heightfield nodes are not built to be compilable either, so it's not for the faint of heart to make this work.


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

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