Skip to content

javirk/Curved-Ray-Tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTorch curved Ray Tracer

This is a ray tracer in Schwarzschild spacetime. Rays are sent from the camera to the scene, and at each time t, the position and velocity for t+1 is calculated following the orbit equation of said spacetime.

Results are acceptable. However, the geometry of spacetime only affects camera rays, which means that light is wrong. I will work on fixing this with photon mapping, which should work with a very similar approach.

The latest version of this repository produces images like: readme_1 readme_2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages