PATH (File Format): Difference between revisions
no edit summary
imported>Jackoalan No edit summary |
imported>Jackoalan No edit summary |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{research|2|The BSP tables at the end need research}} | {{research|2|The BSP tables at the end need research}} | ||
The '''PATH format''' is used to store an area's [[wikipedia:Navigation | The '''PATH format''' is used to store an area's [[wikipedia:Navigation mesh|Navigation Mesh]] in the ''Metroid Prime'' series. | ||
Like navigation meshes in many other game engines ( | Like navigation meshes in many other game engines (Unreal Engine 2, Source, etc...), the PATH format represents an ''n-gon mesh'' | ||
partitioned into a BSP tree for rapid queries. | partitioned into a BSP tree for rapid queries. | ||
'''Please Note:''' PATH meshes use the local coordinate system of the MREA. | |||
One must multiply PATH coordinates as a column-vector with the matrix at offset 0x8 in the MREA to get world coordinates. | |||
== Format == | == Format == | ||
Line 97: | Line 100: | ||
|4 | |4 | ||
|float | |float | ||
|Unknown | |{{unknown|Unknown Value}} | ||
|Speculation: ''Cost'' of edge traversal (i.e. edge steepness). Characters may have a set threshold when selecting edges to traverse. | |Speculation: ''Cost'' of edge traversal (i.e. edge steepness). Characters may have a set threshold when selecting edges to traverse. | ||
|} | |} | ||
Line 137: | Line 140: | ||
|2 | |2 | ||
|short | |short | ||
|Unknown | |{{unknown|Unknown meta-data}} | ||
|Range [1,7] | |Range [1,7] | ||
|- | |- | ||
Line 143: | Line 146: | ||
|2 | |2 | ||
|short | |short | ||
|Unknown meta-data | |{{unknown|Unknown meta-data}} | ||
|Possible Values (1,2,4) | |Possible Values (1,2,4) | ||
|- | |- | ||
Line 167: | Line 170: | ||
|12 | |12 | ||
|float3 | |float3 | ||
| | |Polygon center position | ||
| | | | ||
|- | |- | ||
Line 173: | Line 176: | ||
|12 | |12 | ||
|float3 | |float3 | ||
|AABB- | |AABB-min | ||
| | | | ||
|- | |- | ||
Line 179: | Line 182: | ||
|12 | |12 | ||
|float3 | |float3 | ||
| | |AABB-max | ||
| | | | ||
|- | |- |