/*The 3DQ file format is a text file that contains a header:*/ ver3data=2.0 /*version*/ numlines=3 /*number of lines*/ numtriangles=1 /*number of triangles*/ numtextures=1 /*number of textures*/ /*next, the texture files names are included, without the filepath, the texture must has a lenght of power of 2 and less or equal to 256 pixels, for example 64,128 and 256 pixels max*/ [TEXTURES] crate.bmp [END] /*then the lines coordinates and color information follows, separated by comas*/ point1X,point1Y,point1Z,point2X,point2Y,point2Z,color1R,color1G,color1B,color2R,color2G,color2B [LINES] 0,0,0,1,0,0,1,0,0,1,0,0 0,0,0,0,1,0,0,1,0,0,1,0 0,0,0,0,0,1,0,0,1,0,0,1 [END] /*then the triangles information, first the position coordinates, color, normals, texture index and texture coordinates*/ point1X,point1Y,point1Z,point2X,point2Y,point2Z,point3X,point3Y,point3Z,color1R,color1G,color1B,color2R,color2G,color2B,color3R,color3G,color3B,normal1X,normal1Y,normal1Z,normal2X,normal2Y,normal2Z,normal3X,normal3Y,normal3Z,texture_index,texture1X,texture1Y,texture2X,texture2Y,texture3X,texture3Y [TRIANGLES] 0,0,1,1,0,0,0,1,0,1,0,0,0,1,0,0,0,1,0.57735,0.57735,0.57735,0.57735,0.57735,0.57735,0.57735,0.57735,0.57735,1,0,0,1,0,1,1 [END] /*The next section is supported en the AutoQ3D STD edition*/ Text,pointX,pointY,pointZ,align(left-1,center-2,right-3),flip(false-0,true-1),plane(x-0,y-1,z-2),angle of rotation,height,colorR,colorG,colorB,font(stdtext) [TEXT] Text,1.000000,1.000000,0.000000,1,0,2,0.000000,1.000000,0.500000,0.500000,1.000000,stdtext [END]