I think you misunderstood me. I just want to store octrees in my map file for quicker loading times. But I didn't know that octree generating in run time is quick.
An octree is a run-time structure that is created and maintained dynamically. It does not belong in a file, nor can it be used to “store geometric data”.
You will have to be more
specific accurate about what you want, and you should probably read up on what octrees are.
Just make it yourself. Be creative
You can use xml parser for making your life easier. Example map format:
<object type="light" position="0.0 10.0 5.0" color="1.0 1.0 1.0" />
<object type="geom" position="0.0 0.0 10.0">
<verticies ="blah blah" />
BSP file format made me lazy
but I think I have to do it..
Edited by altay, 23 September 2012 - 08:04 PM.