Egg Octree

I’ve done some fiddling with treeforms version of the octree script. I made a bunch of changes, the most important being the originals assumption that you would only want to use an octree for collision detection - it now allows you to generate an octree keeping its materials/textures and without sticking ‘barrier’ on everything. Basically run it without the -c option for a rendering version, with the -c version for a collision detection version. An extra parameter - maximum recursion depth, has also been added. Its also gained a couple of minor bug fixes.

Whilst I have tested it on a bunch of stuff I don’t exactly have many meshes of the sort you would really throw at this kind of script lying around, so can’t be sure I’ve selected good default parameters, or that all bugs are toast. In case anyone is wondering why I’m playing with this I’ll let you guess what chickens next feature is going to be;-)

Get it here: http://thaines.net/content/panda3d/eggoctree.py