Skip to content
This repository has been archived by the owner on Apr 1, 2023. It is now read-only.

Super old project, probably my first real C++ project ever. Can load an .OBJ file and raytrace it.

License

Notifications You must be signed in to change notification settings

astrofra/toy-cpp-raytracer-2003

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Toy raytracer in C++ (circa 2003)

This is a super old project, probably my first real C++ project ever. Can load an .OBJ file and raytrace it.
The initial version was only able to trace spheres with a color and specular attribute. The specular reflections were most probably wrong.
A couple of days later, it slowly evolved into a polygon raytracer than can load and render .OBJ files.
It is presented here for archival purpose only.

The original comment says:

// Simple (read 'basic') raytracer written in 3 days (3 days for that crappy spheres ?! :)
// C++ ugly code by http://fra.dozign.com
// Raytracer featuring spheres primitives, no shadow casting, unlimited pointlights support (wow)
// and an improvised specular shading model ...

// In no event shall the author be liable for any indirect or
// consequential damages or loss of data resulting from use
// or performance of this software.

Rendering examples

raytraced spheres
raytraced geometry

About

Super old project, probably my first real C++ project ever. Can load an .OBJ file and raytrace it.

Topics

Resources

License

Stars

Watchers

Forks