== 3DF file format description, written by Mirex, (mirex on the mailserver "centrum.sk") == It is a 3d format that I use in some of my programs, it is simple, here is a list of things it supports: vertex coords in float, triangles, skeleton bones with owning, bones can own vertexs, colors of triangles. And one thing before start, all indexes are 1 based !. So first index is [1], not [0] It is text file format so one line means one line in file start // polygons word - number of vertexs [v] [v] lines of float float float - vertexs coords, x y z word - number of triangles [p] [p] lines of word word word - numbers of vertexs that make triangle (1 based!) //if there is not end of file here, it continues //skeleton word - skeleton joints count [c] [c] lines of float float float - skeleton joint coords, x y z word - number of bones [d] [d] lines of word word - two joints that create this bone (1 based!) //if there is not end of file here, it continues //bones owning [d] lines of word - bone parents of bones, one parent for every bone. parent 0 means no parent, main //if there is not end of file here, it continues //vertexs owning [v] lines of word - number of bone that is parent of this point 0 means no parent //turning limits of bones [d] lines of float float float float float float - minx miny minz maxx maxy maxz, angles 0..360 //if there is not end of file here, it continues //shape-there is no use for it now, so just skip it word - shape vertexs count [sv] skip [sv] lines word - shape points count [sp] skip [sp] lines word - shape levels count [sl] skip [sl] lines //if there is not end of file here, it continues //polygon colors [p] lines of uchar uchar uchar - color for every polygon, r g b, 0..255 end Example1 - two colored polygons: 4 //number of vertexs 0 0 0 //vertex 1, x y z 1 0 0 //. 1 1 0 //. 0 1 0 //vertex 4, x y z 2 //number of polygons 1 2 3 //polygon 1, three indexes 1 3 4 //polygon 2, three indexes 0 //no bone joints 0 //no bones 0 //owner of vertex1 - none 0 //owner of vertex2 - none 0 //owner of vertex3 - none 0 //owner of vertex4 - none 0 //no shape verts 0 //no shape points 0 //no shape levels 255 255 0 //color of 1st triangle - yellow 0 128 0 //color of 2nd triangle - dark green displayed it should look like this: 4 +---+ 3 | /| | / | |/ | 1 +---+ 2 And that is all. Have fun. Mirex