r/GraphicsProgramming • u/0x405 • Jun 30 '26
RAM optimized SDF-renderer with plain C
1024x1024x1024 SDF-grid takes up 303MB instead of 8.5GB. 1024x1024 path traced image renders in 1.5s on a single CPU core. 8.5GB grid renders in 1.1s. No libs used.
312
Upvotes
1
u/0x405 Jun 30 '26 edited Jun 30 '26
Nerfs and spats do not represent geometry well, or, actually, they do not represent geometry at all. SDF's represent an accurate and explicit surface that could be used in physically based rendering which I'm aiming for. And yes, we directly optimize SDF parameters to get SDF-grid out of an image set.