PDA

View Full Version : QuakeIII Map File Format



Zeus_666
07-09-2001, 12:25 AM
Hi,
Having a play with the QuakeIII Arena Level editor. I have a few questions.

Has anyone tried using the .map files, looking for info on the data stored.
When i created a cube it outputted:

// brush 0
{
( 192 32 0 ) ( 72 32 0 ) ( 72 -32 0 ) radiant/notex 0 0 0 0.500000 0.500000 0 0 0
( 72 -32 8 ) ( 72 32 8 ) ( 192 32 8 ) radiant/notex 0 0 0 0.500000 0.500000 0 0 0
( 72 -32 8 ) ( 192 -32 8 ) ( 192 -32 0 ) radiant/notex 0 0 0 0.500000 0.500000 0 0 0
( 192 -32 8 ) ( 192 32 8 ) ( 192 32 0 ) radiant/notex 0 0 0 0.500000 0.500000 0 0 0
( 192 32 8 ) ( 72 32 8 ) ( 72 32 0 ) radiant/notex 0 0 0 0.500000 0.500000 0 0 0
( 72 32 8 ) ( 72 -32 8 ) ( 72 -32 0 ) radiant/notex 0 0 0 0.500000 0.500000 0 0 0
}

Any idea what these represent otherthan co-ordinates for a square.

Thanks

Brent Fogarty
07-09-2001, 04:07 PM
Each line represents a plane, combined each group of planes define a convex hull. You can calculate each planes normal using the 3 vertices the level editor produces. Once you have all of the plane equations for a hull then create a very large polygon for each of the planes. Then just clip each polygon against each other polygons plane.

Here is a link to a tutorial on this topic.
http://www.flipcode.com/tutorials/tut_levedit.shtml