Original Post
Hi all, I'm trying to implement a kd-tree for my raytracer, but I cannot find a simple tutorial to follow. The ones I've found (included the PBRT book) aim to build a highly performant tree, while I just need a very simple, easy to implement and working one, before thinking how to speed it up. My problem is that I find it hard to figure out wich the basic steps are inside all that optimization code... I could build one for myself from scratch, but this is the first time I implement a spatial structure, and a help would be great :-)