Inspiration

Completing a raytracer for a project last semester, and wanting to see if we could bring it over to the web!

What it does

Renders high-quality images of XML scenes. Includes a parser, camera, and raytracer.

How we built it

Converting C++ code and logic to JavaScript, including finding new libraries to use and writing to code to fill the gaps where JS lacks.

Challenges we ran into

Operators cannot be overloaded in JS, making vector operations super annoying.

Accomplishments that we're proud of

The parser works perfectly! And the raytracer is 80% finished.

What we learned

Converting code and ideas from one language to another is h-a-r-d.

What's next for JavaScript Raytracer

Working out bugs in object intersection, and putting the raytraced image data in a canvas tag.

Built With

Share this project:

Updates