Wartbed:Files/Formats
From Dark Omen Wiki
(→Geometry) |
(→Vertices) |
||
Line 42: | Line 42: | ||
===Vertices=== | ===Vertices=== | ||
- | <div style="margin-left:2em;border:1px solid gray; background:rgb(16,32,16); | + | Space, tab, '[', ']' and ',' are all valid separators and can be exchanged for reabability. Separators should be able to follow each other (cross your fingers). |
+ | |||
+ | Valid tokens are "xy" for a two-float dataype, "xyz" for a three-float , "xyzw" for a four-float; and "argb", "bgra" and "rgba" for four-byte colours. | ||
+ | |||
+ | Valid field names are "position", "normal", "diffuse", "specular", "emissive" and "texture coordinate". There can be multiple fields of the same type in a vertex, however, it is not yet defined how WARTBED handles this. | ||
+ | |||
+ | <div style="margin-left:2em;border:1px solid gray; background:rgb(16,32,16);"> | ||
<u style="padding:0.5em;">'''2: filename.vertices'''</u><br> | <u style="padding:0.5em;">'''2: filename.vertices'''</u><br> | ||
- | <div style="padding:1em; color:rgb(200,255,200);"><tt> | + | <div style="padding:1em; color:rgb(200,255,200);"><tt>definition<br> |
- | + | {<br> | |
- | + | xyz : position;<br> | |
+ | xyz : normal;<br> | ||
+ | argb : diffuse;<br> | ||
+ | argb : specular;<br> | ||
+ | argb : emissive;<br> | ||
+ | xy : texture coordinates;<br> | ||
+ | }<br> | ||
+ | <br> | ||
+ | vertices<br> | ||
+ | {<br> | ||
+ | 0 : [1,2,3] [0,1,0] 0xFFFFFFFF, 0xF0F0F0F0, 0x10101010 [0,0];<br> | ||
+ | 1 : [4,5,6] [1,0,0] 0xFFFFFFFF, 0xF0F0F0F0, 0x10101010 [1,1];<br> | ||
+ | }<br></tt></div> | ||
</div> | </div> | ||
<br> | <br> |
Revision as of 13:41, 6 September 2008
Description of WARTBED file formats
Contents |
Geometry
.ZIP archive with .model extension. Archive containing the following file types and extensions (can conatin any number of all file types except meshes.desc).
modelname.model
meshes.desc | text |
filename.vertices | text |
filename.indices | text |
filename.bmp/jpg/png | bitmap |
filename.skeleton | ??? |
filename.animation | ??? |
Model description
1: meshes.desc
{
vertices : filename.vertices;
indices : filename.vertices;
offset : [x,y,z];
}
Mesh 2 name
{
...
Vertices
Space, tab, '[', ']' and ',' are all valid separators and can be exchanged for reabability. Separators should be able to follow each other (cross your fingers).
Valid tokens are "xy" for a two-float dataype, "xyz" for a three-float , "xyzw" for a four-float; and "argb", "bgra" and "rgba" for four-byte colours.
Valid field names are "position", "normal", "diffuse", "specular", "emissive" and "texture coordinate". There can be multiple fields of the same type in a vertex, however, it is not yet defined how WARTBED handles this.
2: filename.vertices
{
xyz : position;
xyz : normal;
argb : diffuse;
argb : specular;
argb : emissive;
xy : texture coordinates;
}
vertices
{
0 : [1,2,3] [0,1,0] 0xFFFFFFFF, 0xF0F0F0F0, 0x10101010 [0,0];
1 : [4,5,6] [1,0,0] 0xFFFFFFFF, 0xF0F0F0F0, 0x10101010 [1,1];
Indices
3: filename.indices
Placeholder line 2
Sprites
spritename.sprite
spritesheet.bmp|jpg|png
Map
mapname.map
placeholder line
Army
placeholder line
Mission
placeholder line