TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

An Introduction to ASCII Ray Marching

119 点作者 c-st大约 4 年前

8 条评论

pdkl95大约 4 年前
I ported it to aalib. Instead of a 7 character linear ramp, the aalib version renders to a larger framebuffer, dithers it down to the closes matching characters.<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;pdkl95&#x2F;094cc065ab0215e121da29a63e6c10ec" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;pdkl95&#x2F;094cc065ab0215e121da29a63e6c1...</a><p><pre><code> ajWm##Xs, aWWWWBm##S2s, jQQWQWWmm#XXov, _QQQQWWBBm#ZX2n( ]QQQWWWBmm#XXovl 4WWWWWmmm#XX2ovi` ]mBBmmmm#XXXonl| ###m##ZZXSonI|` -XZZZXXXonvI|~ &quot;Xo2onvvi+` -&quot;^^~~</code></pre>
tobr大约 4 年前
Very cool, great visual explanations of how raymarching works.<p>PSA, Germans writing in English: upside down quotes look as out of place as Spanish question marks! They read like two strange misplaced commas to the rest of us.
samus大约 4 年前
The first paragraphs contain the most concise explanation of the differences between rasterization and ray tracing I ever encountered!
podiki大约 4 年前
Very cool! Reminds me of the old days of ASCII art, I think I last saw it mostly on warez readmes (some really impressive ones)<p>Edit: I love the combo of ray marching and fonts too [0], as previously seen on HN [1]<p>[0] <a href="https:&#x2F;&#x2F;www.rykap.com&#x2F;2020&#x2F;09&#x2F;23&#x2F;distance-fields&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.rykap.com&#x2F;2020&#x2F;09&#x2F;23&#x2F;distance-fields&#x2F;</a><p>[1] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24569542" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=24569542</a>
smcameron大约 4 年前
Reminds me of two other things:<p>* <a href="https:&#x2F;&#x2F;www.a1k0n.net&#x2F;2011&#x2F;07&#x2F;20&#x2F;donut-math.html" rel="nofollow">https:&#x2F;&#x2F;www.a1k0n.net&#x2F;2011&#x2F;07&#x2F;20&#x2F;donut-math.html</a> * <a href="https:&#x2F;&#x2F;www.iquilezles.org&#x2F;www&#x2F;articles&#x2F;distfunctions&#x2F;distfunctions.htm" rel="nofollow">https:&#x2F;&#x2F;www.iquilezles.org&#x2F;www&#x2F;articles&#x2F;distfunctions&#x2F;distfu...</a>
评论 #26394366 未加载
wcarss大约 4 年前
Great post! This motivated more learning for me about ray-tracing and ray-marching than I&#x27;ve ever bothered with, despite over a decade of vague interest.<p>If anyone wants a copy, I ported the diffuse shader code to python 2 and 3 here: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;wcarss&#x2F;a6ff897fb9c50ac34875dbd5d8599927" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;wcarss&#x2F;a6ff897fb9c50ac34875dbd5d8599...</a>
philzook大约 4 年前
I love it. It&#x27;s brilliant to side step the whole issue of how to get access to pixels on your screen or in a png, which in some instances is an awful afternoon of frustration. It&#x27;s almost always easy to get printing going.
nickdothutton大约 4 年前
Nice work. Reminds me of some of the work of Pete Cooke of Tau Ceti and Academy fame on 8-bit platforms.