Tuesday, September 21, 2010

Comparing naive path tracing to bi-directional path tracing

Naive Path Tracing with 64 samples per pixel

Naive Path Tracing with 64 samples per pixel


Bi-Directional Path Tracing with 32 samples per pixel

Bi-Directional Path Tracing with 32 samples per pixel



Here I am comparing the results of naive path tracing (top) with bi-directional path tracing (bottom). The later gives much better results at almost half the number of samples per pixel. Check the reflections on the spheres.

Tuesday, September 14, 2010

Path tracing in GLSL

Finally, I was able to implement path tracing in GLSL. The results are stunning. Currently, my path tracer handles diffuse and specular shading. Adding refraction would be easy. Willl add it in a day or two. Here is the video. The demo runs at 15 fps with 128 samples per ray.

Tuesday, September 7, 2010

Area lights and soft shadows

I added area lights and soft shadows in my GLSL raytracer. The performance is quite good. The video contains 64 shadow rays per sample.

Sunday, September 5, 2010

GLSL based GPU Raytracer

GLSL














Googling online i got a lot of links on GPU based raytracing. But I could not find a simple implementation so I thought I would give it a try. Here is the output obtained through my glsl raytracer. I will publish the details and workable source code later.