An open API service indexing awesome lists of open source software.

https://github.com/prabin-acharya/raytracing


https://github.com/prabin-acharya/raytracing

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Raytracer

My attempt at building a raytracer from scratch following raytracing-in-a-weekend guide. With a raytracer you can model objects in 3D space and generate images for what they'd look like by applying your own colours, angles and lightning. I learned a lot of maths and computer graphics.

To execute simply compile with `g++ main.cc` and then run `./a.out > image.ppm`.

## Antialiasing



Before:
Without antialiasing


After:
After antialiasing

## Diffuse Materials

![Diffuse sphere](./assets/diffuse.png)
![Diffuse spheres](./assets/diffuse2.png)

## gamma correction for accurate color intensity

![alt text](./assets/gamma-correction.png)

## Metal

![alt text](./assets/metal.png)