Skip to content

jsdf/applescript-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

applescript-raytracer

an implementation of raytracing in one weekend in applescript

example render:

rendered output of raytracer

this render took about 1 hour parallelized across 8 cpu cores

to run it yourself:

./raytracer.applescript

this will output a ppm image file named output_[timestamp].ppm

to spawn multiple worker processes, to take advantage of multiple cpu cores, run the script with the smp argument. no logging of incremental progress will be shown in this mode

./raytracer.applescript smp

you can edit renderConfig property defined at the top of raytracer.applescript to adjust the resolution, rays per pixel, and max bounces per ray, which will substantially affect the time taken to render.

you can also change the randomSeed property to generate a different random layout of the smaller spheres

with a few small changes the code also runs on classic mac os

About

a raytracer written in applescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published