←back to thread

Periodic Spaces

(ianthehenry.com)
43 points surprisetalk | 1 comments | | HN request time: 0.199s | source
1. 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.)