lfnetwork.com mark read register faq members calendar

Thread: Strange Request: JK2 Map Format
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 10-04-2014, 04:12 PM   #1
mcmonkey
Lurker
 
Join Date: Oct 2014
Posts: 2
Strange Request: JK2 Map Format

Can anyone help me understand JK2's .map file format?
Specifically, the brushes. I can't seem to identify how the numbers in the brush definition correlate to the actual brush. I assumed at first they were vertices, but then several vertices would be well outside the brush itself.
So... I don't even know what to think. How is the brush format designed?


A brush def, for reference, would be like this example:

// brush 0
{
( -64 64 0 ) ( -64 64 8 ) ( -64 -64 8 ) skylands/wall1 0 0 0 0.250000 0.250000 0 0 0
( -64 64 8 ) ( -64 64 0 ) ( 64 64 0 ) skylands/wall1 0 0 0 0.250000 0.250000 0 0 0
( 64 -72 8 ) ( 64 64 8 ) ( 64 64 0 ) skylands/wall1 0 0 0 0.250000 0.250000 0 0 0
( -48 -64 8 ) ( 72 -64 8 ) ( 72 -64 0 ) skylands/wall1 0 0 0 0.250000 0.250000 0 0 0
( -56 -72 8 ) ( -56 64 8 ) ( 64 64 8 ) skylands/wall1 0 0 0 0.250000 0.250000 0 0 0
( 64 64 0 ) ( -56 64 0 ) ( -56 -72 0 ) skylands/wall1 0 0 0 0.250000 0.250000 0 0 0
}

I don't get why it has things like 72 and -56 and etc. when it's corners are at 64/-64/0/8, no other points.
mcmonkey is offline   you may: quote & reply,
Old 10-09-2014, 02:37 AM   #2
mcmonkey
Lurker
 
Join Date: Oct 2014
Posts: 2
Update:
I've determined the sides of the box:

( 64 64 -64 ) ( -64 64 -64 ) ( -64 -64 -64 ) bottom 0 0 0 0.250000 0.250000 0 0 0
( -64 -64 64 ) ( -64 64 64 ) ( 64 64 64 ) top 0 0 0 0.250000 0.250000 0 0 0
( -64 -64 8 ) ( 64 -64 8 ) ( 64 -64 0 ) yminus 0 0 0 0.250000 0.250000 0 0 0
( 64 -64 8 ) ( 64 64 8 ) ( 64 64 0 ) xplus 0 0 0 0.250000 0.250000 0 0 0
( 64 64 8 ) ( -64 64 8 ) ( -64 64 0 ) yplus 0 0 0 0.250000 0.250000 0 0 0
( -64 64 8 ) ( -64 -64 8 ) ( -64 -64 0 ) xminus 0 0 0 0.250000 0.250000 0 0 0
and discovered that if you only read the relevant digits: the Z's for top/bottom, the Y digits from Y+/Y-, and the X digits from X+/X-, you can build a reasonably accurate cuboid representing the object... this doesn't explain what the extra digits are for, or how to read more complex shapes.
mcmonkey is offline   you may: quote & reply,
Old 10-15-2014, 07:47 PM   #3
acdcfanbill
..the wonders I have seen
 
acdcfanbill's Avatar
 
Status: Super Moderator
Join Date: Jun 2001
Location: Random Hell Wholes around the
Posts: 5,700
Imperialist Meatbags Guild Member The Walking Carpets Guild Member LFN Staff Member 10 year veteran! 
JK2 and JKA share the the Q3 map format with a few caveats I assume. Here's some info on Quake3 and the original Quake .map files.

There's obviously been some updates to the format since Quake era, I don't think Quake supported patches? anyway, it should help a bit.

acdcfanbill is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JO Mapping > Strange Request: JK2 Map Format

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:39 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.