News for hackers. Stuff that matters.
Re:The Moon made twice, at home by pixelpoet on Sunday October 13, 2019 @10:43AM (#21240620)
I did something similar a few years back with that 22gb displacement map, although much more accurately and easily: it's a piece of cake to directly ray trace a displaced sphere: you basically intersect two spheres (the outer and inner radius), which gives you a ray interval that you can "march" through. At each step while marching, you look at the surface height at the current point, compare it to your point's radius, and if it's greater then you've intersected the surface since the last step (and can perform bisection method to refine the intersection distance to machine precision).
Re:The Moon made twice, at home by ray_gray on Sunday October 13, 2019 @02:55PM (#21242131)
That's actually how the displacement of the intersection is done here - marching in the range between spheres. Bisection, however, wont work at shallow angles.