Computer Graphics
Raytracer & Rasterizer

Introduction

Both Raytracer and Rasterizer are build in Visual Studio using C++ with the OpenGL mathematics (GLM) library and SDL2. The first step for both of them was to render correctly the famous Cornell Box and afterwards there are some extra additions for each method.

Raytracer

Raytracing is a method which draws images of 3D scenes by tracing the light rays reaching the simulated camera.

Rasterizer

Although Raytracing is simple and can simulate all kinds of phenomena, its speed is its disadvantage and therefore it is typically not used for real-time visualization. For those scenarios another method is used called Rasterization. Rasterization is usually faster than Raytracing but it cannot easily and effectively simulate all illumination phenomena.