Sign in to follow this  
PasalicZaharije

File format optimizations

Recommended Posts

Hay, direct question - how to effective write AABB tree into file. Our current file format is hierarchy of nodes. Nodes can have MESH or not, animation keys, etc. One flag in MESH data specifie if that mesh has AABB tree. Current file just write AABB node as: NODE_HEADER: BOX BoundBox; BOOL HaveLeft; BOOL HaveRight; NODE_HEADER Left; // if HaveLeft != FALSE NODE_HEADER Right; // if HaveRight != FALSE DWORD NumberOfTriangles; TRIANGLE Triangles[]; // only in LEAF node But I can not imagine mash that have AABB tree that is not balanced? Is this right? If I'm right than best solution is to keep and write AABB tree in array. And if I'm not right, than any sugestion will be good. Thanks, Zaharije Pasalic P.S Sorry for my bad english!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this