Wednesday, March 3, 2010

Texturing and AA

These images has been capture with 1, 4, 16, 32 and 128 samples respectfully. The jaggies are removed after going beyond 4 samples but the far part of checker board still has some artifacts which with increasing samples it reduces.

You can run the application from the following command:

> SimpleRayTracer.exe [eyeX] [eyeY] [eyeZ] [atX] [atY] [atZ] [upX] [upY] [upZ] [width] [height] checker.jpg earth.jpg




The last picture (128 samples) tooks about 405s to render on an intel Core i7 860 CPU with 2.8GHz.

Here is the scene from another viewpoint:


As you can when you go beyond 16 samples the difference between images is not so obvious at this resolution.

Here is the movie which are made from 100 frames and with 4 samples. It tooks about 17minutes.

(Because the size of avi was so high, I encoded it to divx)

Video

Source Code