SDF from Curves

   2928   5   2
User Avatar
Member
30 posts
Joined: 11月 2013
オフライン
Hi all,

I've made a new tool called SDF from Curves for Houdini 20.5 Copernicus that generates a 2D signed distance field from Bézier curves, polylines, or points. I hope you'll find it useful when making textures!

https://store.techie.se/l/sdf_from_curves [store.techie.se]
Edited by Techie - 2024年7月13日 06:45:27

Attachments:
sdf_from_curves.jpg (176.9 KB)

Houdini FX 21 | http://techie.se [techie.se]
User Avatar
Member
395 posts
Joined: 3月 2009
オフライン
Awesome. Thank you! I was surprised this was not in the Copernicus by default
User Avatar
Member
30 posts
Joined: 11月 2013
オフライン
You're welcome LukeP!

I've released version 1.1 now which supports adding thickness to the curves and it also auto-detects if the geometry contains closed curves/polylines.
Edited by Techie - 2024年7月21日 13:10:54

Attachments:
sdf_from_curves_1.1.jpg (209.8 KB)

Houdini FX 21 | http://techie.se [techie.se]
User Avatar
Member
30 posts
Joined: 11月 2013
オフライン
Hi,

I've released version 1.2 now which supports filled closed Bézier curves.
Support for filled closed polylines will hopefully come in a later version.

Attachments:
sdf_from_curves_1.2_1.png (286.0 KB)
sdf_from_curves_1.2_2.png (17.7 KB)
sdf_from_curves_1.2_3.png (4.6 KB)
sdf_from_curves_1.2_4.png (9.6 KB)

Houdini FX 21 | http://techie.se [techie.se]
User Avatar
Member
30 posts
Joined: 11月 2013
オフライン
Hi,

Version 1.3 has been released with support for filled closed polylines and for generating a closed polyline from points.

Please note that there's a known issue where closed Bézier curves are sometimes not filled correctly. This will hopefully be fixed in a later version. A workaround can be to slightly move or rotate the points.
Houdini FX 21 | http://techie.se [techie.se]
User Avatar
Member
30 posts
Joined: 11月 2013
オフライン
Hi,

Version 1.4 has been released with the following changes:
  • Added a "Tile Geometry" parameter so the generated SDF can tile seamlessly.
  • Added parameters to allow using primitive attributes to set curve thickness and whether closed curves should be filled.
  • Added a "Union Curves" parameter which unions overlapping closed curves and removes the overlapping areas from the SDF.
  • Fixed an issue where closed cubic Bézier curves were sometimes not filled correctly.
Houdini FX 21 | http://techie.se [techie.se]
  • Quick Links