Periodic Spaces

(ianthehenry.com)
42 points surprisetalk | 9 comments | | HN request time: 0.818s | source | bottom
1. yakbarber ◴[] No.46202594[source]
Huh
2. kscarlet ◴[] No.46202730[source]
Cool language! What language and library is this?
replies(2): >>46202802 #>>46202888 #
3. josters ◴[] No.46202802[source]
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

4. foota ◴[] No.46202888[source]
Looks like a lisp? Here's the library I think they're using (and wrote): https://github.com/ianthehenry/bauble
5. NKosmatos ◴[] No.46203524[source]
Just opening this page is a "heavy" benchmark for your PC/browser :-)
6. ghusbands ◴[] No.46203526[source]
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.)
7. omnicognate ◴[] No.46203834[source]
What's an SDF?
replies(1): >>46203853 #
8. iainmerrick ◴[] No.46203853[source]
Signed Distance Field