MAP file examples

Quote from Dave Taylor (IRC, 1995)

You will note that this is different from the current MAP file format. Guessing, the number of vertices and the texture is given, followed by texture mapping parameters, and the vertices. While four vertices are sufficient to define a (sheared, rotated) cube, I guess each line defines a plane. However, this format, while quoted on some pages, is obviously not used anymore.
here's some lines from a map file...

   4 WALL14_5 0 0 0 0 0 0
     (0,912,176,144) (0,928,176,144) (16,928,176,144) (16,912,176,144)
   4 WALL14_5 0 0 0 0 0 0
     (192,928,144,0) (192,1040,144,0) (208,1040,144,0) (208,928,144,0)

it's like coordinates specifying a brush and a texture and some other 
stuff.

Example from John Carmack (e-mail, april/04/96)

Here is the contents of johnc99.map, a simple box room consisting of six brushes on the world (the entity #0), and three other entities without brushes ("info_player_start", "light", and "info_player_deathmatch"). Note that it takes six cubes (brushes or building blocks) to define on box volume, and each brush has six planes, the intersections of which define the surface of the brush.

{
 "wad"   "/raid/quake/id1_/gfx/base.wad"
 "classname"     "worldspawn"
 {
  ( 0 832 0 ) ( 0 496 0 ) ( 0 496 -16 ) TECH07_2 0 0 0
  ( 384 720 0 ) ( -16 720 0 ) ( -16 720 -16 ) TECH07_2 0 0 0
  ( 208 496 0 ) ( 208 832 0 ) ( 208 832 -16 ) TECH07_2 0 0 0
  ( 0 496 0 ) ( 400 496 0 ) ( 400 496 -16 ) TECH07_2 0 0 0
  ( 0 496 0 ) ( 0 832 0 ) ( 400 832 0 ) TECH07_2 0 0 0
  ( 400 832 -16 ) ( 0 832 -16 ) ( 0 496 -16 ) TECH07_2 0 0 0
 }
 {
  ( 0 832 144 ) ( 0 496 144 ) ( 0 496 128 ) TECH07_2 0 0 0
  ( 400 720 144 ) ( 0 720 144 ) ( 0 720 128 ) TECH07_2 0 0 0
  ( 208 496 144 ) ( 208 832 144 ) ( 208 832 128 ) TECH07_2 0 0 0
  ( 0 496 144 ) ( 400 496 144 ) ( 400 496 128 ) TECH07_2 0 0 0
  ( 0 496 144 ) ( 0 832 144 ) ( 400 832 144 ) TECH07_2 0 0 0
  ( 400 832 128 ) ( 0 832 128 ) ( 0 496 128 ) TECH07_2 0 0 0
 }
 {
  ( 0 720 128 ) ( 0 704 128 ) ( 0 704 0 ) TECH07_2 0 0 0
  ( 400 720 128 ) ( 0 720 128 ) ( 0 720 0 ) TECH07_2 0 0 0
  ( 208 704 128 ) ( 208 720 128 ) ( 208 720 0 ) TECH07_2 0 0 0
  ( 0 704 128 ) ( 400 704 128 ) ( 400 704 0 ) TECH07_2 0 0 0
  ( 0 704 128 ) ( 0 720 128 ) ( 400 720 128 ) TECH07_2 0 0 0
  ( 400 720 0 ) ( 0 720 0 ) ( 0 704 0 ) TECH07_2 0 0 0
 }
 {
  ( 0 512 128 ) ( 0 496 128 ) ( 0 496 0 ) TECH07_2 0 0 0
  ( 400 512 128 ) ( 0 512 128 ) ( 0 512 0 ) TECH07_2 0 0 0
  ( 208 480 128 ) ( 208 496 128 ) ( 208 496 0 ) TECH07_2 0 0 0
  ( 0 496 128 ) ( 400 496 128 ) ( 400 496 0 ) TECH07_2 0 0 0
  ( 0 496 128 ) ( 0 512 128 ) ( 400 512 128 ) TECH07_2 0 0 0
  ( 400 512 0 ) ( 0 512 0 ) ( 0 496 0 ) TECH07_2 0 0 0
 }
 {
  ( 0 512 128 ) ( 16 512 128 ) ( 16 512 0 ) TECH07_2 0 0 0
  ( 0 816 128 ) ( 0 512 128 ) ( 0 512 0 ) TECH07_2 0 0 0
  ( 0 704 128 ) ( -16 704 128 ) ( -16 704 0 ) TECH07_2 0 0 0
  ( 16 512 128 ) ( 16 816 128 ) ( 16 816 0 ) TECH07_2 0 0 0
  ( 16 512 128 ) ( 0 512 128 ) ( 0 816 128 ) TECH07_2 0 0 0
  ( 0 816 0 ) ( 0 512 0 ) ( 16 512 0 ) TECH07_2 0 0 0
 }
 {
  ( 192 512 128 ) ( 208 512 128 ) ( 208 512 0 ) TECH07_2 0 0 0
  ( 192 816 128 ) ( 192 512 128 ) ( 192 512 0 ) TECH07_2 0 0 0
  ( 192 704 128 ) ( 176 704 128 ) ( 176 704 0 ) TECH07_2 0 0 0
  ( 208 512 128 ) ( 208 816 128 ) ( 208 816 0 ) TECH07_2 0 0 0
  ( 208 512 128 ) ( 192 512 128 ) ( 192 816 128 ) TECH07_2 0 0 0
  ( 192 816 0 ) ( 192 512 0 ) ( 208 512 0 ) TECH07_2 0 0 0
 }
}
{
 "angle" "0"
 "origin"        "72 568 32"
 "classname"     "info_player_start"
}
{
 "light" "400"
 "angle" "0"
 "origin"        "64 672 96"
 "classname"     "light"
}
{
 "origin"        "160 672 32"
 "classname"     "info_player_deathmatch"
}


To clarify, in this revision of the MAP file format, the trailing zeros in a plane like

  "( 0 816 0 ) ( 0 512 0 ) ( 16 512 0 ) TECH07_2    0 0 0"
are s_ofs, t_ofs, and flags. I.e. a texture offset s_ofs=16, t_ofs=-32, with negate_s, negate_t, and exch_st all set will read
  "                                 ... TECH07_2    1 -2 7 1.0 1.0"
instead. Note that texture offsets are currently multiples of 16.

This is, hoever, not the current MAP format, as in the jrbase1 MAP file (670K) from the shareware version (released with the QuakeEd source) there are two floating point numbers added to each Plane definition, which are probably dummies right now, and the flags have vanished.


home qdev qdev dread rsc qdev doom license web
home dEr95 r3D dread netrsc quake doom legal web
Author: B., email to bernd@nero.uni-bonn.de, with public PGP key
Copyright (©) 1995, 1996 by author. All rights reserved.
Source: $Id: map_example.html,v 1.3 1996/06/08 20:34:01 b1 Exp $