Anonymous

Changes

From Final Fantasy Inside

FF7/WorldMap Module

412 bytes added, 21:57, 12 September 2021
Triangle
| Index of vertex 2 of triangle t
|-
| ''5 bits(lowest)''
| ''Walkmap status of triangle t (see below)''
|-
| ''3 bits''
| ''Unknown, probably Mesh function ID to trigger when this triangle is stepped on.<br>Values 0-2 mean no script relatedis attached to this triangle.<br>For values 3+ subtract 3 from this value and this will give you the mesh function ID to trigger.''
|-
| 1 byte
| Coordinate v in texture for vertex 2
|-
| ''9 bits(lowest)''
| ''Texture (see below)''
|-
| ''7 bits''
| ''Location (message ID that will be displayed in the menu menus and savegames)''
|}
uint8 Vertex2Index;
''uint8 WalkabilityInfo:5;''
''uint8 UnknownMeshFuncId:3;''
uint8 uVertex0, vVertex0;
uint8 uVertex1, vVertex1;
The lower 9 bits contain a texture number (0-511, but only 0-281
appear to be used). ''Unfortunately, knowing which texture to use is not enough, the UV coordinates found in the mesh data are (presumably) the original PSX VRAM coordinates, so to get the real coordinates you must subtract a texture-specific offset from each of the UV pairs. A complete table with every texture, its original size and offsets can be found at [[FF7/WorldMap Module/TextureTable| here]]. Sometimes you will end up with negative values after subtracting the offsets, this is normal, the texture should be assumed to repeat itself indefinitely in all directions.''
49
edits