What to do with an object that is split by one or more grid planes?
That is not a problem at all, I'll put it in both cubes, and then when i iterate over octree i just set a flag to visible for that object. No harm done doing it multiple times.
octree->process(camera.frustum); ...// more work here ... ... ... ... drawAll() if(object[i].visible) object[i].draw()there is no redundant drawing only redundant copies of pointers.
The problem is that there is something wrong with my code for creating cubes.