Anonymous

Changes

From Final Fantasy Inside

FF7/WorldMap Module

649 bytes added, 22:43, 10 January 2007
Mesh Structure
A worldmap mesh is recorded like this:
====Header====
Header:
{| border="1" cellspacing="1" cellpadding="3" style="border: 1px solid black; border-collapse: collapse;"
| Number of vertices
|}
 
typedef struct
{
uint16 NumberOfTriangles;
uint16 NumberOfVertices;
} WorldMeshHeader;
For each triangle t in ''number of triangles'':
| Texture (see below)
|}
 
typedef struct
{
uint8 Vertex0Index;
uint8 Vertex1Index;
uint8 Vertex2Index;
uint8 WalkabilityInfo;
uint8 uVertex0, vVertex0;
uint8 uVertex1, vVertex1;
uint8 uVertex2, vVertex2;
uint16 TextureInfo;
} WorldMeshTriangle;
For each vertex v in ''number of vertices'':
| (Unknown: Coordinate w of vertex v?)
|}
 
typedef struct
{
int16 X, Y, Z;
uint16 Unused; // fill to fit structure to 32bit boundry
} VertexType;
For each vertex v in ''number of vertices'':
| (Unknown: Coordinate w of normal for vertex v? "Always 0")
|}
 
typedef struct
{
int16 X, Y, Z;
uint16 Unused; // fill to fit structure to 32bit boundry
} NormalType;
 
structures added by [[User:Cyberman|Cyberman]] 13:43, 10 Jan 2007 (CST)
=== Walkmap ===
Anonymous user