PATH (File Format): Difference between revisions

no edit summary
imported>Jackoalan
imported>Jackoalan
No edit summary
 
(4 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 mesh|Navigation Mesh]] in the ''Metroid Prime'' series.
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 (Unity, Source, etc...), the PATH format represents an ''n-gon mesh''
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 Normalized [0,1] Value
|{{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 meta-data
|{{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)
|-
|-
Anonymous user