Difference between revisions of "FF8/WorldMap wmx"

From Final Fantasy Inside
< FF8
Jump to navigation Jump to search
my_wiki>MaKiPL
(Header data)
my_wiki>MaKiPL
(Segment)
Line 10: Line 10:
  
 
Segment starts with header (consist offsets for every block). After header a block data appears (a 4 byte header?) and triangle data.  
 
Segment starts with header (consist offsets for every block). After header a block data appears (a 4 byte header?) and triangle data.  
 +
 +
{| border="1" cellspacing="1" cellpadding="3" align="center" style="border: 1px solid black; border-collapse: collapse;"
 +
! style="background:rgb(204,204,204)" | Offset
 +
! style="background:rgb(204,204,204)" | Length
 +
! style="background:rgb(204,204,204)" | Description
 +
|-
 +
| 0
 +
| 68 bytes
 +
| Header data
 +
|-
 +
| 68
 +
| varies
 +
| Block data
 +
|-
 +
| varies
 +
| varies
 +
| Padding (00)
 +
|}
  
  
Line 28: Line 46:
 
| Offsets to blocks position. 4 bytes every offset!
 
| Offsets to blocks position. 4 bytes every offset!
 
|}
 
|}
 +
 +
===Block data===

Revision as of 16:19, 12 July 2015

By MaKiPL. All thanks goes to Halfer, for rich research progress on world map file. This wiki page is also based on Blue's wmx2obj source code.

General

Wmx.obj is world map geometry model only. Contains 835 segments, does not contain textures nor additional info like general header or pointers. Collision is calculated directly from faces. Towns and places on map are part of world map and are created the same way as mountains, ground etc. File size is 0x9000*835. Every 0x9000 a next segments starts.

Segment = contains 16 blocks Block = contains geometry

Segment

Segment starts with header (consist offsets for every block). After header a block data appears (a 4 byte header?) and triangle data.

Offset Length Description
0 68 bytes Header data
68 varies Block data
varies varies Padding (00)


Header data

Offset Length Description
0 4 bytes unknown
4 64 (16 * uint32) Offsets to blocks position. 4 bytes every offset!

Block data