Repository navigation
docs/bvh.md: the "aggregated room" BLAS are single drawables, placed by their interior (ASSET-322) - #4265
docs/bvh.md: the "aggregated room" BLAS are single drawables, placed by their interior (ASSET-322)#4265NiiRoZz wants to merge 1 commit 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>
|
Independent docs read & consistency check at
AI-assisted review. |
sds-228
left a comment
There was a problem hiding this comment.
Code review of e6e5347: no issues found. The revised sample counts, table and open questions are internally consistent, and the two samples not run through the reference library are labelled as such. Raw bytes are valid UTF-8. Docs suites: 20 tests OK; compileall and diff check clean.
AI-assisted (OpenCode).
|
Read
|
bobcatchris
left a comment
There was a problem hiding this comment.
Second review, verified on a clean checkout (Windows, Python 3.12, CPU only; the measurement itself is the author's own package):
- Privacy: the only long hex literal added is
0xFFFFFFFF— the header's root-parent sentinel, not game data. Everything else is counts, flags and open questions, consistent with the board rules and with sds-228's read. tests/test_docs_links.pyandtest_docs_repo_paths.pyOK on the head.- The correction direction is right: §4a's 'two of the 10 aggregate props from several drawables' was an inference; replacing it with 'each of the 10 is one drawable' plus a labelled open question (and noting which samples were not re-run through the reference library) is the honest form — same pattern as the other re-measured bvh.md rows.
Approving.
AI-assisted.
…350) Give the count keyed by the stored BLAS header (sizes, bounds, crc32) and transform, the identity ItsNotRexed#4265 uses: 1,030 pairs carry more than one key, up to 60 (ItsNotRexed#4265: 1,008). Keep the crc32-only count after it. AI-assisted. tests/test_docs_*.py: 7/7 OK. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claimed in the coordination issue as: ASSET-322 (claim). Docs only. It uses the interior reader of #1981 (not merged) for the measurement; nothing in the diff depends on it.
What and why
docs/bvh.md§4a said two of the 10 sample BLAS ofcore_bvh4.rpfare interior rooms that aggregate props from several drawables, and that placing them needs the interior's entity list. Re-measured, that is not the case:rpf9dump modelsexport of the wholelevels.rpf(343,327 models, withMeshTris),bvh_match.pyfinds exactly one consistent drawable for each. The two former "rooms" are a baked room-dressing drawable (62,479 leaves, 29 of 42 geometries kept) and another dressing drawable (1,700 leaves, 6 of 10). §7 already reported one consistent candidate for all ten in a 1 GiB window; the doc now agrees with itself.CMloArchetypeDef: 3 in the base list, 4 in a non-default entity set, 3 in a default one. A BLAS sits in interior space atE * M^-1(M= descriptor transform at+0x50,E= entity with the conjugated quaternion). All 10 boxes fit the interior box. A TLAS instance would beI * E * M^-1plus the leaf-frame fold of D3D-412: TLAS instances fold the BLAS leaf frame and store +64 in the console order #4011. The doc says this is derived, not observed.+0x40. Over all 269,106 single-BLAS descriptors, a key always comes with one transform, and with one BLAS header except in 1 case (a 3-leaf BLAS whosecrc32differs in one of 4 copies). But 1,008 (BLAS, transform) pairs carry several keys (up to 60), so the key identifies something finer than that pair. What it hashes stays open; ASSET-321: decode the BVH descriptor templates and tie 6,701 BLAS to their buffers #4199 (open, ASSET-321) also finds no link to the table descriptors. Before opening this PR I checked open and merged PRs again for a decoding of this key and found none.Measured (counts only; no game data in the PR)
bvh_rehydrate.py, the two former "rooms" passxdxr_bvh.py validateexcept for "child box not inside its parent's box" (1,310 and 27 reports for 1,328 and 23 overrides). The library-verified 21,814-leaf BLAS gives the same kind (282 reports for 335 overrides), so these come from stored overrides. The two have not been run throughXboxBvhBuilder.dll.sceneBounds, mapped throughE * M^-1, are 0 m outside the interior box; with the unconjugated quaternion, the one rotated entity is 1.6 cm outside (a weak test, said so in the doc).Tested
python -I tests/test_docs_cli_flags.py,test_docs_links.py,test_docs_table_rows.py,test_docs_list_items.py,test_docs_repo_paths.py: OK.python -I scripts/check_no_game_data.py: exit 0.Open (posted as findings)
+0x40hashes.I * E * M^-1.Checklist
CONTRIBUTING.md): no names, hashes or keys in the doc or here; counts and offsets only.docs/design.md: not applicable.AI-assisted (Claude Code).
🤖 Generated with Claude Code