Original Post
I'm building an AABB tree for my 3D engine, and I need some pointers on optimizing it. First of all, my program is blowing up and getting "no memory" error if I attempt to put a reasonable amount(10 - 20 or so) of triangles into a single box, while the total triangle is around 4000ish. Secondly, how should I traverse through the tree and check for line-box collision? Currently my collision check actully runs alot shower then traversing the whole tree. Someone please give me some pointers, thanks.