Real-time WebGL2 black hole raytracer with lensing and accretion disk
Kimi K3 wrote a single-file Schwarzschild black hole in raw WebGL2, with a lensed glowing disk, orbit camera and a slider panel for tuning it.
Créez des modèles 3D détaillés
Le code seul ne donne que des formes simples. Wandy 2 transforme une seule photo en modèle 3D texturé, utilisable dans la même scène.
Prompt 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.
Comment utiliser ce prompt
Paste the prompt into Kimi K3 (or another strong coding model) and request one HTML file with no libraries.
Change the physics targets: spin, disk colours, slider list, or add presets for different scenarios.
Open it in a modern browser, orbit around the hole, then ask for fixes to performance or visual artifacts.
Par Wandy3D
Besoin d’un vrai modèle 3D dans votre scène ?
Votre agent construit avec des primitives. L’API Wandy3D transforme une photo ou un prompt en GLB texturé en quelques minutes, payé depuis un solde prépayé, sans abonnement.
- Wandy 20,18 $US par modèle
- Wandy 10,09 $US par modèle
Le solde n’expire jamais · les tâches échouées sont remboursées · les modèles créés via l’API sont à vous, téléchargeables dans tous les formats.
curl -s -X POST https://api.wandy3d.com/generate/cloud/ultra \ -H "Authorization: Bearer $WANDY3D_API_KEY" -F "file=@photo.jpg"# → {"task_id": "…"} — poll until "status" is "done":curl -s https://api.wandy3d.com/task/$TASK_ID/status \ -H "Authorization: Bearer $WANDY3D_API_KEY"# → {"model_id": "…"} — then GET /model/$MODEL_ID/export?format=glbPublication d’origineVous êtes l’auteur ? Demandez-nous de modifier ou de retirer cette page
Plus de prompts similaires
Voir tous les prompts
Kimi K3.1Interactive 3D helicopter with takeoff, assembly and exploded views
Lumina
Claude Opus 5.5Rubber band watermelon test: a squeezable, bursting 3D browser toy
林悦己Cheer
Claude Opus 5.5Interactive 3D volcano cutaway simulation with magma chamber
Konstantin Saifoulline
Claude Opus 5.5WebGPU jelly press toy: gummy fruit squashed and burst by a hydraulic press
Vib3Coded
Claude Opus 5.5Single-file WebGPU jelly press toy with soft-body fruit gummies
Vib3Coded
Claude Opus 5.5Scroll-driven exploding mechanical watch in raw WebGPU, single HTML file
Paruchh

