Show HN: Iridescent crystal with raymarching and signed distance fields
1–8 of 8 posts
Re: Show HN: Iridescent crystal with raymarching and signed distance fields
#2The polyhedron being rendered only has 32 vertices and 60 triangles. The indexed mesh gonna take 744 bytes of VRAM with FP32 coordinates and uint16_t indices, which can be reduced to 552 bytes by using FP16 coordinates. That’s less data than the GLSL source code to compute and render the SDF. Also, if MSAA is enabled rasterization will deliver better visual quality.
Re: Show HN: Iridescent crystal with raymarching and signed distance fields
#3Looks very cool, but why? Unlike many other applications of SDFs, for this particular one a traditional rasterization seems more appropriate. The polyhedron being rendered only has 32 vertices and 60 triangles. The indexed mesh gonna take 744 bytes of VRAM with FP32 coordinates and uint16_t indices, which can be reduced to 552 bytes by using FP16 coordinates. That’s less data than the GLSL source code to compute and…
This is far more about SDFs than it is about the polyhedron.
Re: Show HN: Iridescent crystal with raymarching and signed distance fields
#4Re: Show HN: Iridescent crystal with raymarching and signed distance fields
#5Re: Show HN: Iridescent crystal with raymarching and signed distance fields
#6Re: Show HN: Iridescent crystal with raymarching and signed distance fields
#7wow, you made something complex understandable to me. I'd dabbled in shaders but Raymarching (I now know why it's called that!) and SDF had eluded me, thank you.