Drughi Posted October 20, 2019 Share Posted October 20, 2019 How to use the "SDF Representation" Node to convert a density volume to SDF? Or is there another way? Quote Link to comment Share on other sites More sharing options...
Drughi Posted October 20, 2019 Author Share Posted October 20, 2019 (edited) I know its possible with the sop solver, but I guess it's not as fast as SDF Representation Edited October 20, 2019 by Drughi Quote Link to comment Share on other sites More sharing options...
Drughi Posted October 21, 2019 Author Share Posted October 21, 2019 (edited) In this article: https://www.gridmarkets.com/alejandro-echeverry Alejandro describes the process of doing a pyroclastic smoke simulation. And he says: "Because we need a signed distance field to better compute the necessary fields, I did convert the density field to a SDF representation." But I can't figure out how to do that. Edited October 21, 2019 by Drughi Quote Link to comment Share on other sites More sharing options...
Drughi Posted October 21, 2019 Author Share Posted October 21, 2019 Maybe the master himself? @Pazuzu Quote Link to comment Share on other sites More sharing options...
jamesr Posted October 21, 2019 Share Posted October 21, 2019 It'd be cool to hear from the source, but here's what I figured out fog_to_sdf_dops.hip Quote Link to comment Share on other sites More sharing options...
Drughi Posted October 21, 2019 Author Share Posted October 21, 2019 1 hour ago, jamesr said: It'd be cool to hear from the source, but here's what I figured out fog_to_sdf_dops.hip Thanks, it's working, but unfortunately it' s much slower than the sop solver workaround. fog_to_sdf_dops_compare.hipnc Quote Link to comment Share on other sites More sharing options...
Pazuzu Posted October 24, 2019 Share Posted October 24, 2019 Regards speed, I think it mainly depends on the method, but the vdb one is the best in terms of control, because you can continue to filter and reshape the field using the vdb arsenal. Sometimes the gas reinitializesdf microsolver is faster, but it can also become a weird bottle neck with huge boundaries, for example if you want to compute a gradient out of an sdf and you need the gradient to cover the whole volume container or to have a better extrapolation, in this case vdb can be a pain because of his sparse nature, of course you can expand or extrapolate your sdf using the amazing vdbactivatesdf, but that can be even slower than to use the microsolver directly. 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.