Anonymous

Changes

From Final Fantasy Inside

FF8/FileFormat magfiles

457 bytes removed, 18:58, 10 July 2016
Environment objects: deleted outdated stuff
7.Read int at 24th byte for VERTICES COUNT [Vertex is 8 bytes! X Z Y W, where W is probably weight byte [as in OBJ specification] and is normally unused (as usual, even in casual OBJ files)]
The polygons are weird?
So far I think there are more polygon types. If you work with this dictionary you're going to be fine:
 
private Dictionary<UInt16,int> _polygonType = new Dictionary<ushort, int>
{
{ 0x7, 20}, //BAD?
{ 0x8, 20}, //OK
{ 0x9, 28}, //OK
{0x10, 20}, //BAD?
{0x12, 24}, //OK
{0x13, 36}, //OK
{0x18, 0x18} //24 BAD?
};
Example: 09 00 9f 01 means there's 9f 01 (415) polygons of type 0x9. Therefore: 28*415=11620 bytes to next polygon type or vertices if FF FF FF FF.
Anonymous user