Kimi K3作者:Harsh

WebGL2で動くブラックホールのレイトレーサー(重力レンズと降着円盤)

Kimi K3が生のWebGL2でシュワルツシルト・ブラックホールを1ファイルで実装。レンズ効果の円盤、周回カメラ、調整用スライダー付きです。

Claude Code + Three.js(コードのみ)Wandy 2
実際のモデル · 360°どちらも同じ写真から作成:左は Claude Code(Opus 5.5)が Three.js のコードでモデリングした、手を加えていない1回分の実行結果。右は Wandy 2。

精細な3Dモデルを作ろう

コードだけでは単純な形しか作れません。Wandy 2なら写真1枚から、同じシーンで使えるテクスチャ付き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. 最新ブラウザで開いてブラックホールを周回し、描画負荷やノイズの修正を依頼します。

元の投稿作者の方ですか? このページの修正・削除をご依頼ください