# How to Render a Physically Accurate Black Hole with General Relativity

Original title: Relativistic Raytracing

> Hacker News story 49782452 · language: en · submitted 2026-09-21
> Web version: https://zeli.app/story/49782452
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 55 · by [vismit2000](<https://news.ycombinator.com/user?id=vismit2000>) · 💬 9
[original](<https://publish.obsidian.md/h1m3/Articles/Relativistic+raytracing>) · [HN discussion](<https://news.ycombinator.com/item?id=49782452>)

## Summary

This article shows how to render a black hole in full compliance with General Relativity. The author derives light-ray motion equations using the Schwarzschild metric, implements an adaptive Runge-Kutta integrator in GLSL, and combines them into a fragment shader that traces rays backward from the camera. The result is a physically accurate image of gravitational lensing and the black hole's shadow.

## Key quote

> Light travels in a straight line. But what does straight really mean?

## HN discussion (9 comments)

### [jiehong](<https://news.ycombinator.com/item?id=49807886>)

> Would the image be very different for a rotating black hole?
>
> Since they probably all rotate in nature.

### [hackyhacky](<https://news.ycombinator.com/item?id=49804708>)

> This is very interesting, but way above my pay grade. Can someone explain how the resulting image reflects light traveling backwards in time?

### [leidenfrost](<https://news.ycombinator.com/item?id=49805470>)

> Someone should implement this as a mod for RTX No Man Sky

---

## Cite

- Page: https://zeli.app/story/49782452
- Date: 2026-09-21
- Source: publish.obsidian.md (https://publish.obsidian.md/h1m3/Articles/Relativistic+raytracing)
- Hacker News: https://news.ycombinator.com/item?id=49782452

## Other languages

- zh: https://zeli.app/zh/story/49782452 · markdown: https://zeli.app/zh/story/49782452.md
- ja: https://zeli.app/ja/story/49782452 · markdown: https://zeli.app/ja/story/49782452.md
- ko: https://zeli.app/ko/story/49782452 · markdown: https://zeli.app/ko/story/49782452.md
- de: https://zeli.app/de/story/49782452 · markdown: https://zeli.app/de/story/49782452.md
- es: https://zeli.app/es/story/49782452 · markdown: https://zeli.app/es/story/49782452.md
- ru: https://zeli.app/ru/story/49782452 · markdown: https://zeli.app/ru/story/49782452.md
