Thursday, May 13, 2010
Thursday, April 29, 2010
Friday, April 16, 2010


The speed increases dramatically when the depth increases, the speedup is shown below for depth=4, 8, 12, 16, 20

with depth 20 or more, there is no considerable speedup for KDTree. Since, the major times is due to loading obj files and build the tree.
Wednesday, March 3, 2010
Texturing and AA
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)
Friday, February 12, 2010
Simple Ray tracer

The bug was in "-=" operator in vector class.
you can issue the following command to run the application:
> SimpleRayTracer.exe [eyeX] [eyeY] [eyeZ] [atX] [atY] [atZ] [upX] [upY] [upZ] [width] [height]
on debug mode it takes 52" on intel Atom 330 1.6GHz and on release mode it takes 8" to complete the rendering.
when I implemented the reflection the rendering time goes from 22" to 52" on 3 bounce reflection.











