hi people i found a description of the .map format in the quake documentation project:
The planes are specified by three points in clockwise order. The
points that define the plane are not necessarlily points on the brush,
but just three non colinear points on the plane. I chose this
representation instead of an explicit normal/distance plane
representation because it allows me to keep perfect precision with
integral values: it guarantees integer values for anything we create
in our editor, lessening concern over floating point creep.Each brush defines a solid region. Brushes define this region as the intersection of four or more planes. Each plane is defined by three noncolinear points. These points must go in a clockwise orientation:
1–2----------------->
|
3
|
|
|
|
|
i found this while searching for some info for my collaborative-mapping
tool i’m currently doing and i have to admit i don’t understand it completely - take a normal brush, 6 sided - this brush has 6 lines in the .map like this one:
( 192 128 0 ) ( -128 128 0 ) ( -128 -128 0 ) miltary_wall/concrete_c06 0 0 0 0.500000 0.500000 0 0 0
here we have the 3 points that define that plane with all the xyz-coordinates - but: this seems to define an edge of the brush, 3 coordinates are afaik only enough to define an edge not a complete plain with 4 sides and edges, otherwise a plane with an arbitrary angle than 90 degree couldn’t be defined…? so i would have assumed the brush has 6 planes -> 6 lines in the .map with each 4 coordinates for the edges…
you see i am quite confused and mabe talking nonsense, anyway it would be great if somebody could explain that to me or point me to some explanation, couldn’t find any more info on that by simply searching…