Hi everyone,
I wrote a simple ray tracer and I would like to improve it by creating grids. First, I want to create a uniform grid to accelerate the rendering. Right now, I have my triangles in my grid but I am stuck because I don't understand how to traverse it....
I found a tutorial which gives some code to traverse this kind of grid : http://www.clockworkcoders.com/oglsl/rt/gpurt3.htm.
I don't really understand so I am asking you some help.
I understand that I have to find the vessel where the ray is starting, but how can I know which is the next voxel ?