Repository navigation
docs/bvh.md: where the BLAS of the §4a interior's other entities are (ASSET-351) - #4506
Krashgamer wants to merge 4 commits into
Conversation
…by their interior (ASSET-322) All 10 sample BLAS of core_bvh4.rpf match exactly one drawable each on a full levels.rpf export with per-geometry counts; the two read as aggregated rooms are baked room-dressing drawables. All 10 are entities of one interior archetype (base list and two entity sets); a BLAS sits in interior space at E * M^-1. The shader skip covers 7 hashes over these samples, not 2. The descriptor key at +0x40 always comes with one transform, and distinct keys can share a BLAS and its transform (whole pack, single-BLAS descriptors). Counts only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(ASSET-351) The first 10 streams of core_bvh4.rpf cover 10 of the interior's 242 entities. Matching every BVH stream of core_bvh4.rpf and shared_minigame000_bvh4.rpf against the interior's drawables, at all four LODs, finds a BLAS for 124 of its 143 archetypes (220 entities), all in core_bvh4.rpf: 23 built from the first LOD and 101 from the second, which rpf9dump models does not export. One BLAS per drawable, not per entity; the 115 archetypes past the first 10 streams lie in a band of streams 231,012 to 261,585. 16 exported archetypes have none, 11 of them as the shader rule predicts, and one shader hash is both kept and left out. Counts only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kam471
left a comment
There was a problem hiding this comment.
Ran this at 8b0c4767 on Windows 11: test_docs_links.py 6 OK, test_docs_design_rows.py 2 OK; git diff --check clean.
The BVH section now records where the other entities' BLAS live, with counts/offsets only. No blocking issue.
…h4.rpf The first 10 streams are the whole first nested pack (9FPR tag); the other 121 BLAS of the interior lie in 31 other nested packs. Counts only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Read on Linux, and ran the repository's doc checks against it: the page still passes, and one sentence reads ambiguously.
Docs only, measurement not reproducible here (needs a game copy); no game data in the text. AI-assisted. |
|
Tested ef7ee74 merged with main 03b09a0 (merge 4f3e433d0, no conflicts) on Linux (WSL2) Python 3.12.16: pass for what can be checked without the game.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested d778482 merged with main 98fa503 on Linux (Python 3.12.16): pass for what can be checked without the game - tests/test_docs_*.py all 10 OK. Cross-checked the arithmetic in the new text: table skipped geometries sum to 65 and kept to 67; 62,479-leaf BLAS skips 13 and the 273/1,700-leaf ones 4 each (48 + 13 + 4 = 65); 130 streams = 25+103+2 and 9+121; archetypes 23+101+1+16+2 = 143 and entities 32+188+1+19+2 = 242; entity sets 11+2+77+152 = 242, 3+4+3 = 10; 0.4% = 121/30,574. All consistent. The dump-derived values themselves are unchecked. |
Claimed in the coordination issue as: ASSET-351 (claim), from
NiiRoZz's finding. Docs only.Depends on: #4265 (ASSET-322). This PR extends the interior paragraphs that #4265 adds to §4a, so its branch is built on #4265's head (
e6e53475); the diff shows #4265's commit until that one is merged. The commits after it are this PR.The question
The interior of the §4a sample pack has 242 entities (143 archetypes), but only 10 of them have a BLAS among the first 10 streams of
core_bvh4.rpf. Where are the others: later streams, other packs, or none?Answer (counts only)
Every BVH stream of
core_bvh4.rpf(271,637) andshared_minigame000_bvh4.rpf(1,237) was matched against the interior's 141 exported drawables with thebvh_match.pysignature and thebvh_geometry_check.pychecks, at all four LODs of each drawable.story000_bvh4.rpfholds no BVH.core_bvh4.rpf; the shared pack has none at any LOD.+0x58), whichrpf9dump modelsdoes not export: it decodes only the first (+0x50). That is why a whole-archive export finds only the first 10, plus some small props. §7 now says so next tobvh_match.py.9FPRtag in the data area starts one), the first 10 streams are the whole first nested pack and the other 121 lie in 31 other packs (added afterchadatouille's note in the coordination thread).How it was measured
tools/bvh_index.pyon both packs (totals equal §1 exactly), a whole-levels.rpfrpf9dump modelsexport (343,327 models, as in docs/bvh.md: the "aggregated room" BLAS are single drawables, placed by their interior (ASSET-322) #4265), and the interior'sCMloArchetypeDefread with the layout of world_build: place interior (MLO) entities (--interiors, ASSET-127) #1981 (11 base entities, sets of 2/77/152).+0x58/+0x60/+0x68instead of+0x50, exporting only the interior's 141 drawables (117/90/67 decode). Nothing of it is in this PR; arpf9dumpoption for it would be a change tothird_party/rpf9-explorer, which I'll post as a finding rather than fold in here.Tested
python -I tests/test_docs_cli_flags.py,test_docs_design_rows.py,test_docs_links.py,test_docs_list_items.py,test_docs_python_deps.py,test_docs_repo_paths.py,test_docs_table_rows.py: OK.python -I scripts/check_no_game_data.py: exit 0.rpf9dump), no GPU involved. Data: Xbox Series package 1.0.2.1 (all 108 SHA-256 matchgame/xbox-1.0.2.1.json), local work folder outside the repository.docs/bvh.md(docs/bvh.md: the 0x130 "u16 table" is three header words; no prim remap table (ASSET-329) #4139, bvh_packing_check: the §4a dehydrated packing holds on every BVH4 stream (ASSET-330) #4133, ASSET-321: decode the BVH descriptor templates and tie 6,701 BLAS to their buffers #4199, rdna2spirv: BVH triangle words as measured on RDNA2: raw scaled numerators, hardware tie rule, invalid rays #4202, D3D-412: TLAS instances fold the BLAS leaf frame and store +64 in the console order #4011, XDXR builder: radix-tree BVH, about half the traversal steps (D3D-410, depends on #3315) #4098, XDXR builds: ARRAY_OF_POINTERS instances and the 16-bit vertex formats #3944, Tools: compare XDXR BVH traversal work across builds #3940, Ray tracing: the first real core_bvh4 BLAS on a GPU (the descriptor base is the 256-byte-unit field) #3794, XDXR builder: BOX16 nodes for MINIMIZE_MEMORY BLASes, and TRI1 pairing #3315) touch other hunks.Checklist
CONTRIBUTING.md): no names, hashes or keys in the doc or here; counts, offsets and stream ordinals only.docs/design.md: not applicable.AI-assisted (Claude Code).
🤖 Generated with Claude Code