Claude Code ray-traces the spinning black hole at the center of our galaxy in raw WebGL2 and checks its shadow against the textbook answer
Summary: Claude Code ray-traces the spinning black hole at the center of our galaxy in raw WebGL2 and checks its shadow against the textbook answer is a research & learning use case for Claude Code. Gabriele Bolognese gave Claude Code (Opus 5.5 at xhigh effort) a physics brief: a spinning Kerr black hole with the mass and distance of Sagittarius A*, every pixel an exact light path traced backward from the camera on the GPU, a thin accretion disk with a flaring hot spot and a virtual Event Horizon Telescope watching through the night. With no libraries (raw WebGL2, canvas 2D and 7 Web Workers) it worked alone for 179 minutes over 262 turns, wrote 4,316 lines and cost $113.94 at API prices. The rendered shadow came out at 51.167 microarcseconds, 0.000196% off Bardeen's analytic curve. The hard part was 32-bit floats: rays bounced off nothing until it re-projected the radial velocity, and it cut the planned 40,960 rays per frame to about 8,192 to fit his laptop's integrated GPU.
- Agent(s)
- Claude Code
- Tag
- Niche
- Topics
- Kids and parentingRadio and astronomy
- Category
- Research & Learning
- Original source
- Gabriele Bolognese (@bologabriele) on X ↗
- Original author
- Gabriele Bolognese (@bologabriele)
- Source type
- Posts on X
- Added
- Last updated
- Plain text
- Markdown version · JSON
Cite this use case
Quote it with a link to this page and the original source:
AI Agent Use Cases. (2026). Claude Code ray-traces the spinning black hole at the center of our galaxy in raw WebGL2 and checks its shadow against the textbook answer. Retrieved from https://agent-uses.com/use-cases/claude-code-ray-traces-the-spinning-black-hole-at-the-center-of-our-galaxy-in-raw-webgl2-and-checks-its-shadow-against-the-textbook-answer/ (original source: https://x.com/bologabriele/status/2124080596049613283)