Skip to content

A simple script to animate ray tracing a scene using python

License

Notifications You must be signed in to change notification settings

James11222/PyRayTrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyRayTrace

Stable

A simple script to animate a ray traced scene using python. This code was adapted from the extremely helpful Medium Post written by Omar Aflak. It is worth a 10 minute read to understand the basics of Ray Tracing. I adapted this code to be object oriented and include animation features.

Dependencies:

  • numpy
  • matplotlib
  • tqdm

To run the code just run the following command from inside the repo:

python raytrace.py

You can modify the initial conditions, resolution, and other physical parameters to your liking. Running the base file should get you something that looks like this:

About

A simple script to animate ray tracing a scene using python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages