Problem with too few grids: Every ray gets checked with every triangle
Problem with too many grids: Will spend all your time rasterizing ray through empty space. Slow algorithm because walking through empty grid cells even though not checking any triangles
xiubaohui
My idea is that get the smallest primitive and largest one, then caculate a best fit resolution to be able cover most of the primitives in it.
Problem with too few grids: Every ray gets checked with every triangle Problem with too many grids: Will spend all your time rasterizing ray through empty space. Slow algorithm because walking through empty grid cells even though not checking any triangles