Pure3d P3D

From XentaxWiki
Revision as of 11:14, 24 August 2021 by imported>Ikskoks (→‎Subchunks Specifications)
Jump to navigation Jump to search

Back to index | Edit this page

P3D

  • Format Type : Archive
  • Endian Order : Little Endian
  • Signature : P3D


Format Specifications

// main chunk
4 bytes (char) - signature // "P3D\xFF"
4 bytes (uint32) - chunk header size  // always 12
4 bytes (uint32) - file size / main chunk size

// subchunks 
num_of_subchunks *
{
   4 bytes (uint32) - chunk type   //   0x00 0x90 0x01 0x00 / 102400 - texture
                                   //   0x01 0x90 0x01 0x00 / 102401 - image
                                   //   etc.
   4 bytes (uint32) - chunk header size
   4 bytes (uint32) - chunk size
   x bytes - chunk data   // it can contain other subchunks
}  

Subchunks Specifications

// Texture subchunk data
// 0x00 0x90 0x01 0x00 / 102400

1 byte (uint8) - filename length
32 bytes (char) - filename   // e.g. "C1L2A1-14_residentwindow1.tga"
4 bytes (uint32) - version  // e.g. 14000
4 bytes (uint32) - width
4 bytes (uint32) - height
4 bytes (uint32) - bpp
4 bytes (uint32) - alpha depth
4 bytes (uint32) - mipmaps count
4 bytes (uint32) - texture type  // e.g. 8
4 bytes (uint32) - usage  // e.g. 0
4 bytes (uint32) - priority // e.g. 0
x bytes - data


// Image subchunk data
// 0x01 0x90 0x01 0x00 / 102401

1 byte (uint8) - filename length
32 bytes (char) - filename   // e.g. "C1L2A1-14_residentwindow1.tga"
4 bytes (uint32) - version  // e.g. 14000
4 bytes (uint32) - width
4 bytes (uint32) - height
4 bytes (uint32) - bpp
4 bytes (uint32) - is_palettized flag
4 bytes (uint32) - has_alpha flag
4 bytes (uint32) - image format  // e.g. 10
x bytes - data
// ImageData subchunk data
// 0x02 0x90 0x01 0x00 / 102402

4 bytes (uint32) - image data size
x bytes - data

MultiEx BMS Script

Not written yet.

Notes and Comments

  • This file format occurs in games made by Radical Entertainment.

Games

List of games using this file format:

  • Crash Mind Over Mutant
  • The Simpsons Hit & Run

Compatible Programs