Pure3d P3D: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| Line 39: | Line 39: | ||
32 bytes (char) - filename // e.g. "C1L2A1-14_residentwindow1.tga" | 32 bytes (char) - filename // e.g. "C1L2A1-14_residentwindow1.tga" | ||
4 bytes (uint32) - version // e.g. 14000 | 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 | |||
</pre> | |||
</div> | |||
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;"> | |||
<pre> | |||
// 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 | |||
</pre> | </pre> | ||
</div> | </div> | ||
Revision as of 11:10, 24 August 2021
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
// 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
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
- Lucas' Pure3D Editor
- P3DExplorer
- P3DDiff