// Project X .Map Format 99 // Magic Number, must be 99! poly 4 // number of polygons in the file texs 1 // number of textures in the file lights 1 // number of lights in the file lightmaps 0 // need lightmaps to be generated? (0 = generate lightmaps, 1 = use pre-generated maps) // texture list: t box.bmp // filename of first (and in this case, only) texture // light list: l 1, 1, 1, 55, 0, 0, 4500.0 // specifies a light with r,g,b,x,y,z coordinates, final value is intensity // start geometry f 5 // specifies that this face definition occupies next 5 lines c 1.0, 1.0, 1.0 // color of triangle (r,g,b) t 0 // texture index to use (0 = first one... thus box.bmp) v -55, 15, 35, 2.0, 0.0, 1.0, 0.0 // vertex coordinates as: x,y,z,u,v,lu,lv where v -55, 15, 25, 0.0, 0.0, 0.0, 0.0 // x,y,z is world space coordinate, v -55, -55, 25, 0.0, 2.0, 0.0, 1.0 // u,v is texture coordinate, and lu,lv is lightmap coordinate f 5 c 1.0, 1.0, 1.0 t 0 v -55, 15, 35, 2.0, 0.0, 1.0, 0.0 v -55, -55, 35, 0.0, 0.0, 0.0, 0.0 v -55, -55, 25, 0.0, 2.0, 0.0, 1.0 f 5 c 1.0, 1.0, 1.0 t 0 v -45, 15, 35, 2.0, 0.0, 1.0, 0.0 v -45, 15, 25, 0.0, 0.0, 0.0, 0.0 v -45, -55, 25, 0.0, 2.0, 0.0, 1.0 f 5 c 1.0, 1.0, 1.0 t 0 v -45, 15, 35, 2.0, 0.0, 1.0, 0.0 v -45, -55, 35, 0.0, 0.0, 0.0, 0.0 v -45, -55, 25, 0.0, 2.0, 0.0, 1.0