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?
Copernicus: SDF from curves gives outline, not fill?
802 2 1- Mike_A
- Member
- 271 posts
- Joined: Aug. 2018
- Offline
- Techie
- Member
- 25 posts
- Joined: Nov. 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!
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]
- Techie
- Member
- 25 posts
- Joined: Nov. 2013
- Offline
Hi Mike_A,
I've released version 1.2 now which supports filled closed Bézier curves.
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