Skip to content

alessandro-gentilini/ray_casting

Repository files navigation

ray_casting

A very slow toy ray-casting renderer.

The iconic Utah Teapot

alt text

rendered with the code and starting from the data contained in https://github.com/alessandro-gentilini/ray_casting/blob/master/triangles.txt and in https://github.com/alessandro-gentilini/ray_casting/blob/master/vertices.txt, the output is https://github.com/alessandro-gentilini/ray_casting/blob/master/teapot.ppm which I normalized with GIMP to get this image:

alt text

There should be a bug somewhere: that white central rectangles are suspicious...