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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: An otherworldly 3D scene in 16 kB of JavaScript

1 点作者 monokai_nl5 个月前
(trigger warning: I know HN isn&#x27;t keen on anything related to crypto, and this is crypto-art.)<p>Over the course of a couple of months this year I learned path tracing, signed distance fields, GLSL coding, and compacting JavaScript using a coding style you should never use in real life. But this all resulted in a system that can create &quot;photo-realistic&quot; 3D images of an otherworldly scene in 16000 bytes, no dependencies.<p>Monte Carlo path tracing is a very interesting technique, albeit very slow to render. It still amazes me how you can get a huge amount of variation and realistic lighting from a tiny amount of code that basically simulates millions of light rays bouncing around in a mathematically defined scene with some randomness applied.

暂无评论

暂无评论