Octree Recursion

Blitz3D Forums/Blitz3D Programming/Octree Recursion

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm just looking to break a rectagular portion of space down about 4 levels. The problem I have, is that I'm not all that good with writing recusive functions, I always get confused at some point. Anyway, I'm not sure what the best way is to get the recursion to stop at the forth level deep. Any suggestions?