Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 878 Bytes

readme.md

File metadata and controls

34 lines (25 loc) · 878 Bytes

Pure3D

.NET library for loading the Pure3D file format, used in Radical Entertainment's Pure3D game engine used most famously for the following games:

  • The Simpsons: Road Rage
  • The Simpsons: Hit & Run
  • Crash Tag Team Racing

Animated GIF of Homer marching.

Animated Homer model from The Simpsons: Hit & Run imported into S&box game by Layla using Pure3D.

Usage

static void Main(string[] args)
{
    var file = new Pure3D.File();
    file.Load("mrplo_v.p3d");
    PrintHierarchy(file.RootChunk, 0);
}

static void PrintHierarchy(Pure3D.Chunk chunk, int indent)
{
    Console.WriteLine("{1}{0}", chunk.ToString(), new String('\t', indent));
    foreach (var child in chunk.Children)
        PrintHierarchy(child, indent + 1);
}

License

The MIT License (MIT) - Copyright (c) 2018 Matt Stevens