Thursday, May 13, 2010

Technic that are used in final project:
Caustic,
Soft shadowing,
Bump mapping,
Depth of field,

The first image show the scene without depth of field:
It is rendered with 16 multisampling and 16 samples for softshadows.

The Next images with depth of field:


Thursday, April 29, 2010

The first file is just a silly way to demonstrate the basic usage of shell scripting (bash) in UNIX/Linux env.

The second one, works under cygwin and it set some parameters for raytracer, and then run it.

Download

Friday, April 16, 2010


The Snell and Frensel are implemented. The acoustic effect is also implemented.

Different objects with different Ref. index and nested glass is also done.


Download Code 

For KDTree, on each level the space is getting separated on X, Y, Z axises repeatedly.


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.

Download Code



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

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.

Download

Wednesday, February 10, 2010

Math Review

Assignment 2: