A set of tools for converting the DAT files of Grand Prix Legends into more standard formats.
Note: This readme assumes rudimentary knowledge of the organization of the game's assets - what a MIP file is, how 3DO files differ from DAT files, etc.
The race track at Rouen, rendered using the retro n-gon renderer with textures and 3d models extracted from the game's rouen.dat file.
The following tools are provided:
Extracts the contents of a DAT file.
Extract all files from rouen.dat into
$ php dat-extract.php -i rouen.dat
Extract MIP and 3DO files only:
$ php dat-extract.php -i rouen.dat -w *.mip,*.3do
List the contents of rouen.dat without extracting anything:
$ php dat-extract.php -i rouen.dat -l
Converts MIP and SRB image files into PNG.
Convert the base level of tree.mip into tree.png:
$ php mip2png.php -i tree.mip
Convert all levels of tree.mip into PNG
$ php mip2png.php -i tree.mip -a
Display metadata about tree.mip, without converting anything.
$ php mip2png.php -i tree.mip -m
Converts 3DO mesh files into Wavefront OBJ.
Convert tree.3do into tree.obj:
$ 3do2obj -i tree.3do -o tree.obj
- Car 3DOs are currently not supported.
- SRB objects might not be correctly exported at present.
- Track 3DOs require all sub-3DOs to be present in the same directory as the base 3DO.
- Texture names are exported with the .PNG extension. You can convert the corresponding MIP and SRB files using mip2png.