From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:J3D model (BMD, BDL)" |
|---|
| claim | "J3D files start with a 0x20-byte big-endian header (8-char magic like J3D2bmd3, u32 size, u32 chunk count, 16-byte sub-version) followed by chunks of (4-char id, u32 size, size includes the 8-byte chunk header); model chunk order is INF1 VTX1 EVP1 DRW1 JNT1 SHP1, then MAT3 (MAT2 in J3D2bmd2 files), an optional MDL3 (BDL), and TEX1." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:J3D model (BMD, BDL)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "J3DHeader" |
|---|
| size | 32 |
|---|
| endianness | "big" |
|---|
| fields | | offset | "0x00" |
|---|
| size | 8 |
|---|
| type | "char[8]" |
|---|
| name | "magic" |
|---|
| notes | "J3D2bmd2, J3D2bmd3, J3D2bdl4 are parsed as models by this loader; J3D2bmt3 and animations (J3D1bck1 etc.) use other chunk sets" |
|---|
|
| offset | "0x08" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "file_size" |
|---|
|
| offset | "0x0C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "chunk_count" |
|---|
|
| offset | "0x10" |
|---|
| size | 16 |
|---|
| type | "char[16]" |
|---|
| name | "sub_version" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "JSystemFileReaderHelper reads magic, size, numChunks, subversion and chunks from 0x20; BMD constructor reads chunks in order" |
|---|
| repo | "https://github.com/magcius/noclip.website" |
|---|
| commit | "fd973ff240233c63883750a557c62baf6ff2a6c7" |
|---|
| path | "src/Common/JSYSTEM/J3D/J3DLoader.ts" |
|---|
| lines | "40-82, 1453-1465, 1519" |
|---|
|
| type | "source" |
|---|
| detail | "BMD constructor: nextChunk INF1, VTX1, EVP1, DRW1, JNT1, SHP1; MAT2 when magic is J3D2bmd2 else MAT3; maybeNextChunk MDL3; TEX1. BMD.parse asserts magic in {J3D2bmd2, J3D2bmd3, J3D2bdl4}. Header fields read with view.getUint32 (big endian)." |
|---|
| repo | "https://github.com/magcius/noclip.website" |
|---|
| commit | "fd973ff240233c63883750a557c62baf6ff2a6c7" |
|---|
| path | "src/Common/JSYSTEM/J3D/J3DLoader.ts" |
|---|
| lines | "39-82, 1453-1465, 1515-1520" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "J3D file header and chunks" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T13:56:55.889Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T17:25:01.550Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read J3DLoader.ts at the cited commit: JSystemFileReaderHelper reads magic (8), size 0x08, numChunks 0x0C, subversion 0x10 (16 chars), chunks from 0x20, DataView.getUint32 without littleEndian (big); chunk size at +4 added to offset; BMD constructor order INF1 VTX1 EVP1 DRW1 JNT1 SHP1, MAT2 if J3D2bmd2 else MAT3, optional MDL3, TEX1; parse asserts the three magics." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T12:14:31.003Z" |
|---|
| summary | "Variants missing: the loader reads all header and chunk fields big endian (DataView.getUint32 without littleEndian), and J3D2bmd2 files have a MAT2 chunk where bmd3/bdl4 have MAT3; MDL3 is optional…" |
|---|
| changed | | "claim" |
| "data" |
| "evidence" |
|
|---|
|
|
|---|