Let's continue 3d
This is going to explain how it works
There are basicall two ways to approach the problem:
- Either you project any pixel of the source object into the screen plane- this is the commonly used technique
- Or you "trace" every ray from the screen plane into space, seeing wether it finally hits an object. This has the advantage of that one can calculate reflecting materials very easy.
go on here