Kimi K3作者 Harsh

WebGL2 实时黑洞光线追踪:引力透镜与吸积盘

Kimi K3 用原生 WebGL2 在单文件中实现了史瓦西黑洞:带引力透镜的发光吸积盘、环绕相机和可调滑块面板。

Claude Code + Three.js(仅代码)Wandy 2
真实模型 · 360°两者都基于同一张照片:左边是 Claude Code(Opus 5.5)用 Three.js 代码建模的一次未经修改的运行结果;右边是 Wandy 2。

创建精细的 3D 模型

单靠代码只能做出简单的形状。Wandy 2 能用一张照片生成带纹理的 3D 模型,直接用在同一个场景里。

Kimi K3 提示词

Create a complete, self-contained single HTML file (no external libraries like Three.js) that implements a real-time geodesic raytracer for a Schwarzschild black hole inspired by Gargantua.

Use raw WebGL2 with GLSL ES 3.00 in a single fragment shader. Implement accurate physics: null geodesic integration with 4th-order Runge-Kutta solver, event horizon, photon sphere, accretion disk with proper rendering, gravitational lensing, Doppler beaming, and gravitational redshift effects. Target stable 60 FPS performance.

Include mouse-controlled camera orbiting/zooming, and a cyberpunk-style control panel with sliders for parameters (mass, spin, disk density, view angle, etc.). Add subtle particle effects for matter falling in and dynamic lighting/shadows.

The output must be 100% complete, immediately runnable in a modern browser, with no black screen, NaNs, errors, or missing features. Prioritize numerical correctness, boundary handling, solver discipline, and physical accuracy above all. Verify and comment key physics equations in the code. Make it visually stunning and interactive like a premium physics demo/game.

如何使用这条提示词

  1. 把提示词粘贴到 Kimi K3 等强力编程模型,要求输出不依赖库的单个 HTML 文件。

  2. 修改物理参数:自旋、吸积盘颜色、滑块列表,或增加不同场景的预设。

  3. 在现代浏览器中打开并环绕黑洞观察,再让模型修复性能或画面瑕疵。

原帖你是作者吗? 请联系我们修改或删除此页面