Original Post
hi all
i'' ve coded some classes to use milkshape 3d(both static and animatef) models in my projects, and i'' d like to use one large ms3d file as my "world map", becouse i don''t want bsp trees(rather open terrain) i decided to use octree(subdividing space into 8, and 8, and 8 pieces...) - but my code for ms3d keeps data top-down, i mean i''ve got grups of triangles(grouped by material), then triangles(indices to vertices and so on - like RSN but not exactly the same) so the question is how to use octrees?(i ve seen a tutorial, but in it the triangles are beeing stored in vectors in leafs of the tree, i can'' t do that - i dont want to enlarge my data(to every triangle keep its material state), i wish to keep state changes of material as low as possible - but on the other side, checking every frame every triangle is it to draw(i mean is the part of the space that he belongs to draw) is a pain... how to get it into one piece smart and well?
thanks for answering and sorry for my english