Copernicus: SDF from curves gives outline, not fill?

   788   2   1
User Avatar
Member
271 posts
Joined: 8月 2018
Offline
With a regular:
sdfshape > sdf_to_mono
I get a white filled shape against a black background - as expected.

With:
sopimport > sdf_from_curves > sdf_to_mono
I get a thin outline of the curve with no fill. The 'sop import' curve is closed and the input geometry type is set appropriately and 'Closed Curves' is enabled. I was expecting a solid shape against the background as with the regular sdfshape option.

Bug? Or lack of operator know-how?
User Avatar
Member
25 posts
Joined: 11月 2013
Offline
Hi Mike_A,

That's a limitation of my tool, the generated SDF doesn't contain any "inside" values, so there's nothing to fill. I'm checking if support for this can be added.

If you want to fill a closed curve, one way to do it is to append a "Convert" SOP node after the curve (inside the "SOP Import" node) so it gets converted to triangles, then append a "Rasterize Geometry" node after the "SOP Import" to get a filled shape.
If you want control over edge antialiasing and smoothing, append a "Mono to SDF" and an "SDF to Mono" node.

Hope that helps!
Houdini FX 20.5 | http://techie.se [techie.se]
User Avatar
Member
25 posts
Joined: 11月 2013
Offline
Hi Mike_A,

I've released version 1.2 now which supports filled closed Bézier curves.
Houdini FX 20.5 | http://techie.se [techie.se]
  • Quick Links