Hi guys…Haven’t posted here in AGES! But was looking for help regarding the structure of a .map file. I am going to build an importer for XNA to accept map files to produce levels. I am not interested in all the different entities, just the brushes. For this I need to know what each value stands for in the structure if the map file.
Example brush:
// brush 0
{
( 0 64 0 ) ( 0 64 64 ) ( 0 0 64 ) radiant/notex [b][i]-16 0 0 0.500000 0.500000 0 0 0[/i][/b]
( 64 64 64 ) ( 0 64 64 ) ( 0 64 0 ) radiant/notex -16 0 0 0.500000 0.500000 0 0 0
( 64 64 64 ) ( 64 64 0 ) ( 64 0 0 ) radiant/notex -16 0 0 0.500000 0.500000 0 0 0
( 0 0 64 ) ( 64 0 64 ) ( 64 0 0 ) radiant/notex -16 0 0 0.500000 0.500000 0 0 0
( 0 64 64 ) ( 64 64 64 ) ( 64 0 64 ) radiant/notex -16 0 0 0.500000 0.500000 0 0 0
( 64 64 0 ) ( 0 64 0 ) ( 0 0 0 ) radiant/notex -16 0 0 0.500000 0.500000 0 0 0
}
Here obviously the red values are the vertices but there are only 6 different sets of vertices, therefore for a cube you expect these to be for each face, but each face should have 4 vertices and here there are only 3.
The blue value is the texture used on that face but I do not know what the bold italicised vaules are used for. Anyone have an idea?
Also for a patch the values are different again.
Example patch:
// brush 0
{
patchDef2
{
radiant/notex
[b][i]( 3 3 0 0 0 )
(
( ( 0 -63 0 0 1.937500 ) ( 0 -63 31 0 0.968750 ) ( 0 -63 62 0 0 ) )
( ( 63 -63 0 1.968750 1.937500 ) ( 63 -63 31 1.968750 0.968750 ) ( 63 -63 62 1.968750 0 ) )
( ( 63 0 0 3.937500 1.937500 ) ( 63 0 31 3.937500 0.968750 ) ( 63 0 62 3.937500 0 ) )
)[/i][/b]
}
}
Anybody know what the bold italicised values are for here?
Thanks peeps.