Jump to content
  • Advertisement
Sign in to follow this  

File format optimizations

This topic is 4422 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!