News for hackers. Stuff that matters.
Re:Show HN: Iridescent crystal with raymarching and signed d... by Const-me on Tuesday July 04, 2023 @06:07PM (#36593136)
Looks 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 render the SDF. Also, if MSAA is enabled rasterization will deliver better visual quality.

Re:Show HN: Iridescent crystal with raymarching and signed d... by abstractbeliefs on Tuesday July 04, 2023 @06:20PM (#36593246)
That's true for _this_ polyhedron, but it's useful and more clear to demonstrate the technique with a simple example and allow the mind to then explore what else could be modelled this way than to blow someone away with complexity that they miss the point.

This is far more about SDFs than it is about the polyhedron.

Re:Show HN: Iridescent crystal with raymarching and signed d... by Etheryte on Tuesday July 04, 2023 @06:49PM (#36593505)
This is great, I spent more time looking through the linked demos than I would like to admit.
Re:Show HN: Iridescent crystal with raymarching and signed d... by tudorw on Tuesday July 04, 2023 @09:02PM (#36594412)
wow, 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.
Re:Show HN: Iridescent crystal with raymarching and signed d... by winkerVSbecks on Wednesday July 05, 2023 @09:52AM (#36600493)
Thanks, I'm glad the explanation was helpful. I'm always worried that my explanations make no sense to anyone.
Re:Show HN: Iridescent crystal with raymarching and signed d... by 0xf00ff00f on Tuesday July 04, 2023 @09:22PM (#36594534)
This is pretty cool, thank you for sharing.
Re:Show HN: Iridescent crystal with raymarching and signed d... by hiveking on Wednesday July 05, 2023 @11:51AM (#36602178)
That's neat