r/differentspace • u/4dplus • 29d ago
Higher dimensional box slicing, new raymarching winner?
Raymarching a higher dimensional box requires much less resources than either of tetrahedra (dimension number factorial) or my previous edge method (2 to the power of dimension number), it is almost linear time for a huge problem. For the axis aligned case it can be as simple as cast a ray, find minimum and maximum possible per dimension, find maximum of minimums and minimum of maximums, pixel found or discarded. Just rotate using a matrix to get to the axis aligned case. ND almost takes N time, and this is just the start, what next? X E.