Pathtraced online game

I have made a Raytraced Online Game few months ago. It looks nice, but it does not look realistic, so I decided to rewrite it into Path Tracing.


The scene geometry is the same, as in raytraced version, with one difference - I made bigger sun. All materials are perfectly diffuse. There is a simple environment map with different color gradients on each hemisphere.


I have implemented the most primitive Pathtracing method. Rays are traced through the scene with cosine-importance-sampled random reflection direction. Path has non-zero color, when it hits the sun or environment map. Path is "killed" by russian roulette.

There is one thing I am worried about. I couldn't make any propper random number generator in GLSL. It seems, that my current generator is not totally random, so resulting image is a little biased (there appear color artifacts on balls after some time of rendering).

So, here it is:

Old comments (closed because of spam)


  1. amd-linux said:

    Doesn’t work well with AMD 7950 on linux. Dark noise accumulates and you can’t see anything as a result.

    January 26th, 2013
  2. Ivan Kuckir said:

    Hey, I think the problem is somewhere in your envronment (browser, GPU drivers, GPU firmware …). My GLSL code should be correct. Sadly, I can not edit GPU firmware from HTML code :(

    January 26th, 2013