3 ms·
In a nutshell, simplest form of raytracing: imagine a point where your eye sits behind the screen, throw lines from this point into the screen hitting each pixe
by jacquesm 8y ago
In a nutshell, simplest form of raytracing: imagine a point where your eye sits behind the screen, throw lines from this point into the screen hitting each pixel dead center into the scene, check which objects you hit, how far away from the origin point that happens and sort by depth. Take the nearest one, render in color based on angle of incidence compared to lightsource.
That's the very simplest form of raytracing that you could do, then you can add reflection and transparency and other niceties that lead to the splitting of the rays and a summation at each hit.
This is actually reverse raytracing, forward raytracing starts from the lightsource, doing it backwards is an optimization because a lot of the light would end up hitting absorbing surfaces long before it would hit the plane of projection.