A free physics simulation — play it in your browser, no install. GARGANTUA — Schwarzschild black hole raytracer. Full-screen real-time GLSL null-geodesic integration, event horizon + photon ring + multiple disk crossings + Doppler beaming + gravitational redshift. No build step, vendored three.js.
Vote and save it — continue with GitHub or sign in free
Made this, @Matrix4096? See how many people played it → or use email
GitHub asks to share your profile and email with us. We never post anything.
No account needed to save ♥ or react 🔥: they’re under the game. Or vote with email.
Open the live demo Source on GitHub**在线演示 → ** · **源码 → **
参数表、预设、调试视图、画质档全部集中在 js/params.js——HUD、持久化与 URL 接口都由它派生, 改一处即可全局生效。
倾角定义:0° = 沿盘法线俯视(正面),90° = 与盘面共面(边缘)。
脚本用零依赖 CDP 驱动本机 Chromium:等待 __GARGANTUA_READY__、收集控制台错误与未捕获异常、 调用 analyze() 输出像素统计并保存 PNG;任何控制台错误都会让退出码非 0。
测地线积分. 由相机位置与视线确定轨道平面,以 u = 1/r 为变量积分 d²u/dφ² = −u + 3M u²(四阶 Runge–Kutta)。步长 h = clamp(κ/u, h_min, h_max),
终止条件. u ≥ 1/r_s → 落入事件视界,返回纯黑;到达逃逸半径且向外 → 采样天球。
吸积盘. 盘面是过原点的倾斜平面。每一步检测 dot(pos, n_disk) 是否变号, 插值出交点后做发射–吸收合成(前向透射率),因此近侧盘面会遮挡远侧与背景星空。
观测温度 T_obs = g·T_emit,玻尔兹曼亮度按 g⁴ 缩放——这正是边缘视角下接近侧比远离侧亮数倍的原因。
其余.
Built something like this? Submit your vibe — free account, takes a minute. How listing works.
Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.
Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.