Trace the Ray
Part 1: Trace the Ray Hello everyone, in this series of blog posts I will be talking about my ray tracer's development which I will be developing for ceng795 . I will write every line of code in this ray tracer except stb_image library which is used for writing png images. First, let us talk about what actually ray tracing is for those who don't know. Ray tracing is one of the most popular rendering algorithms. It's basically a way of simulating light's behavior with computers and generating images as the result. In order to simulate lights behavior. We do the following: We send a ray from our eye (or camera) to each individual pixel and deciding where would that ray pass before reaching our eye hence the name "ray tracing". After knowing where the light travels and which objects or mediums it interacts we can decide that specific pixel's color value. In these series of blog posts, most of the time I will be skipping the maths and geometry details ...