NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Periodic Spaces (ianthehenry.com)
ghusbands 7 days ago [-]
A simpler way: You can avoid sampling neighbours by clamping the ray-march step so it never moves further than the current cell's boundary (plus a tiny epsilon). That way, you only cross into adjacent cells at the edge and avoid the 8 to maybe 26 extra SDF samples. (This only works if the geometry is entirely contained within each cell.)
kscarlet 7 days ago [-]
Cool language! What language and library is this?
josters 7 days ago [-]
This seems to be the article's author's own language Bauble[1], "a toy for composing signed distance functions in a high-level language (Janet), compiling them to GLSL, and rendering them via WebGL"[2].

[1]: https://ianthehenry.com/posts/bauble/building-bauble/ [2]: https://github.com/ianthehenry/bauble

foota 7 days ago [-]
Looks like a lisp? Here's the library I think they're using (and wrote): https://github.com/ianthehenry/bauble
omnicognate 7 days ago [-]
What's an SDF?
iainmerrick 7 days ago [-]
Signed Distance Field
NKosmatos 7 days ago [-]
Just opening this page is a "heavy" benchmark for your PC/browser :-)
yakbarber 7 days ago [-]
Huh
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:14:36 GMT+0000 (Coordinated Universal Time) with Vercel.