rgl-epfl / differentiable-sdf-rendering

Source code for "Differentiable Signed Distance Function Rendering" (Siggraph 2022)
BSD 3-Clause "New" or "Revised" License
857 stars 53 forks source link

What is the best way to implement a custom SDF field? #12

Closed kimren227 closed 1 year ago

kimren227 commented 1 year ago

Hi,

Can you suggest the best way to implement a custom SDF field?

Thanks in advance,

Daxuan

dvicini commented 1 year ago

Hi,

Sorry for my non-response. Your best bet is to check the implementation of Grid3d and follow that. As a word of caution though: this method only supports "approximate" SDFs, in a sense that we rely on the SDF's spatial gradient (i.e. normal) to be continuous. So many analytic SDFs wont work properly.

anticdimi commented 1 year ago

Hi, @kimren227 did you manage to implement it? I am trying to do a similar thing.