VOGONS


First post, by vvbee

User metadata
Rank Oldbie
Rank
Oldbie

Extracts data from Grand Prix Legends's DAT files. Converts textures into PNG and 3D models into OBJ/MTL. Also works with track meshes (recursively converts all 3DO dependencies except for the horizon) but not with cars.

The DAT extractor and texture converter are written in PHP7 and will run on the command-line with a PHP7 interpreter. The mesh converter is C++ and requires a compiler that supports the C++17 filesystem library (e.g. GCC 9).

The 3D models that ship with the game have been pre-compiled into a tree structure with polygons at the leaf nodes and rendering metadata along the branches. The model converter comes with a tree traversal implementation that you can in theory subclass to extract specific data - by default the converter extracts the 100% LOD mesh with its polygons and materials.

https://github.com/leikareipa/gpl-dta

Attachments

  • gpl-dta-blender.png
    Filename
    gpl-dta-blender.png
    File size
    592.67 KiB
    Views
    186 views
    File comment
    Exported Spa track mesh loaded in Blender
    File license
    Fair use/fair dealing exception