Neikke Posted May 4, 2023 Share Posted May 4, 2023 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: Quote Link to comment Share on other sites More sharing options...
animatrix Posted May 4, 2023 Share Posted May 4, 2023 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. Quote Link to comment Share on other sites More sharing options...
Neikke Posted May 5, 2023 Author Share Posted May 5, 2023 Hmm ok, this is too complicated for me atm.. Quote Link to comment Share on other sites More sharing options...
hannes603 Posted May 5, 2023 Share Posted May 5, 2023 @animatrix ....heightfield erosion does not work in compile block bec its not compilable node... maybe the heightfield cutout object helps ?! Quote Link to comment Share on other sites More sharing options...
animatrix Posted May 5, 2023 Share Posted May 5, 2023 (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 May 5, 2023 by animatrix Quote Link to comment Share on other sites More sharing options...
hannes603 Posted May 5, 2023 Share Posted May 5, 2023 @animatrix timeshift isnt the issue as far as i see it here. You can check yourself in the scene below HeightFields_foreach_erosion.hip Quote Link to comment Share on other sites More sharing options...
animatrix Posted May 5, 2023 Share Posted May 5, 2023 13 minutes ago, hannes603 said: @animatrix timeshift isnt the issue as far as i see it here. You can check yourself in the scene below HeightFields_foreach_erosion.hip 823.06 kB · 0 downloads Yes as I mentioned Solver SOP also needs to be replaced. Quote Link to comment Share on other sites More sharing options...
animatrix Posted May 5, 2023 Share Posted May 5, 2023 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.