Skip to content
0:00 / 0:00

#c++#blackholesimulation#raytracing

Simulating Black Holes in C++

kavan

172K subscribers • 1 video on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Linked in the descriptionkavan010/black_hole

Intermediate. Assumes working knowledge.

3.2M views1 year ago1 recommendation

Graphics and audioSystems programmingC++Rendering

Kavan explains how to simulate a supermassive black hole and its gravitational lensing effects using C++.

Learning Coding here: app.codecrafters.io/join?via=kavan010 Github repo: github.com/kavan010/black_hole X/Twitter: x.com/KavanSG discord: discord.gg/emfVXxcskU Instagram (personal account): instagram.com/kavaan010 Simulated a black hole in C++! Sort of sequel to my gravity video! Thank you everyone for the support !! Upcoming projects: - Catching a Model rocket ;O - fine tuning LLMs - Simulating atoms

Why it's here

1 person recommends this

What people say. Recommended as inspiration for implementing real-time black hole simulations with gravitational lensing.

u/FraLindiin r/C_Programming • Recommends

Black hole simulation in C I built a real-time simulation of a supermassive black hole with two orbiting stars, using ray tracing for gravitational lensing effects (Schwarzschild metric). It features OpenGL/GLSL rendering, a deformed spacetime grid, an accretion disk, and interactive camera controls. Inspired by this YouTube video: [video (done in C++), I reimplemented it in pure C. Here the source code: https://github.com/mrparsing/C-Projects