C++ Ray Tracing algorithm

English

This project is a simple 3D scene renderer written in C++. It allows the creation of scenes with different types of shapes (spheres and planes) and lights (point and rectangular). The scene is then rendered and the result is exported as a PPM image.

How to use

  1. Define the camera, film, and scene objects in the main.cpp file.
  2. Compile the project with a C++ compiler.
  3. Run the program. The rendered image will be saved as output.ppm.

Português

Este projeto é um simples renderizador de cenas 3D escrito em C++. Ele permite a criação de cenas com diferentes tipos de formas (esferas e planos) e luzes (pontual e retangular). A cena é então renderizada e o resultado é exportado como uma imagem PPM.

Como usar

  1. Defina a câmera, o filme e os objetos da cena no arquivo main.cpp.
  2. Compile o projeto com um compilador C++.
  3. Execute o programa. A imagem renderizada será salva como output.ppm.