rickomax / psxprev

PSXPREV - Playstation (PSX) Files Previewer/Extractor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement HMD strip mesh packets, code 3

trigger-segfault opened this issue · comments

Of all the HMD geometry packet types, Strip Meshes and Presets are the only forms that are unsupported. While it's not clear how Preset packets are intended to work, Strip Meshes are clear, and simply haven't been implemented since they haven't been encountered yet.

Strip Meshes are an alternative to Triangles and Quads, and have a variable number of vertices defined based on a number that appears in the packet.

In order to implement Strip Meshes, TMDHelper will need to be rewritten to some extent. The current method handles packets based on singular appearances of data types, but this can't be handled when a variable amount of vertex/normal/etc. packets may appear after the num definition.