Skip to content

petersn/python-raytrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

A simple Python raytracer I challenged myself to write in an hour. The following two images are from a version that was committed 59 minutes and 54 seconds after I started the timer (I started their renders before the time was up, although their actual renders completed after time was up for changes). The images thereafter have additional changes in the code.

An 800x800 render done in about 10 minutes, with four objects and three lights, with a recursion limit of 2:

Simple render

Another render of the same scene with 16 depth-of-field samples per pixel, that took 2.2 hours to render:

Depth of field render

I didn't like how bad the DOF effect looked on the above image, but it was the last render I started before my hour was up. These images have a texture and more carefully tuned DOF.

Textured render

Textured and DOF render

About

Simple raytracer in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages