Anonymous

Changes

From Final Fantasy Inside

FF7/Field/Walkmesh

88 bytes removed, 17:22, 24 July 2012
Sector pool
typedef struct {
short x,y,z,y,res; // short is a 2 byte signed integer
} vertex_3s; // 3s == 3 short although there are 4 this is for 32 bit data alignment in PSX
} sect_t; // Sector Type
The pool consists of sectors, which are in fact triangles, each with their vertices position. For each sector there are 3 vertices (3 vertex_3s). Res and is always equal to v[0].z values are often the same, for z this (it is expected (think planes of datajust a padding value), more study is needed as to what res might be being used for. The polygons are 'wound' clockwise, this makes determining if a point is within a triangle easier.
==== Access pool ====
Anonymous user