Skip to content

This raytracer is a versatile implementation of Ray Tracing in One Weekend Book Series which uses Python as the interface for the scene description

Notifications You must be signed in to change notification settings

rafael-fuente/sightpy-weekend-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sightpy Weekend Raytracer

This Monte Carlo raytracer (path tracer) is a versatile implementation of Peter Shirley Ray Tracing in One Weekend Book Series which uses Python as the interface for the scene description.

The Python interface and coding-style is based on sightpy , my readable, and easy-to-use Python raytracer. But unlike it, the core of this raytracer is written in C++ and therefore focuses in rendering the scenes as fast as possible. Also, I implemented multithreading, so the images are efficiently rendered in parallel.

Installation

Just clone or download this repo and run:

python setup.py build_ext --inplace

You need to have a C++ compiler installed on your computer in order to run this command successfully.

Examples

See the examples to see how to render the following images:

python example1.py

N|Solid

python example2.py

N|Solid

About

This raytracer is a versatile implementation of Ray Tracing in One Weekend Book Series which uses Python as the interface for the scene description

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published