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.
- Define the camera, film, and scene objects in the
main.cpp
file. - Compile the project with a C++ compiler.
- Run the program. The rendered image will be saved as
output.ppm
.
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.
- Defina a câmera, o filme e os objetos da cena no arquivo
main.cpp
. - Compile o projeto com um compilador C++.
- Execute o programa. A imagem renderizada será salva como
output.ppm
.