TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Iridescent crystal with raymarching and signed distance fields

159 pointsby winkerVSbecksalmost 2 years ago

5 comments

Const-mealmost 2 years ago
Looks very cool, but why? Unlike many other applications of SDFs, for this particular one a traditional rasterization seems more appropriate.<p>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.
评论 #36593246 未加载
tudorwalmost 2 years ago
wow, you made something complex understandable to me. I&#x27;d dabbled in shaders but Raymarching (I now know why it&#x27;s called that!) and SDF had eluded me, thank you.
评论 #36600493 未加载
Etherytealmost 2 years ago
This is great, I spent more time looking through the linked demos than I would like to admit.
0xf00ff00falmost 2 years ago
This is pretty cool, thank you for sharing.
hivekingalmost 2 years ago
That&#x27;s neat