A ray tracer written in native JavaScript that should run on any mainstream browser. Features include antialiasing, Fresnel reflection and refraction, texture mapping, glossy reflectance, and multiple geometric primitives at arbitrary positions and orientations. Reads in scene descriptions from json files, and implements an octree to accelerate rendering of primitives.
- Clone the project
- Navigate to the folder
- Setup a simple local HTTP server
python3 -m http.server
- Open a web browser and navigate to
localhost:<port number>/renderme.html
- Upload any sample file from the 'sceneDescriptions' folder
- Select 'Render'
To save multiple images of a scene at regular time steps, enter the number of frames you wish to save in the appropriate input box on the page. Note that rendering each frame might take quite while depending on your PC. Once you have rendered an image, refresh the webpage if you wish to render a different image.