# X-Ray Vision anatomy assets

## Arm bones (2026-11-14)

Six licensed left/right humerus, radius and ulna STL meshes are served from `arms/`. Source commit, hashes, anatomical identities, runtime normalization and license are in [arms/README.md](arms/README.md). The existing head/hand atlas remains separately credited below.

## Shared atlas (2026-11-13)

`atlas-head.glb`, `atlas-hand.glb`, and `atlas-manifest.json` are extracted from the anatomy data embedded in [MasterOfVFX2070's X-Ray Mirror `index.html`](https://github.com/MasterOfVFX2070/xray-mirror/blob/main/index.html), retrieved from [the raw source URL](https://raw.githubusercontent.com/MasterOfVFX2070/xray-mirror/main/index.html) on 2026-11-13 (SHA-256 `b5e12cd0755ac0976e655c4f9ac914c2a7a6b54474455d66549cbdfa6511dfb0`). That HTML identifies its simplified and realigned meshes as **BodyParts3D, © The Database Center for Life Science, CC Attribution-Share Alike 2.1 Japan**. Credit for that simplification and realignment belongs to MasterOfVFX2070. We decoded its quantized vertex/index arrays, computed normals, and repackaged geometry as GLB using our own [`build-xray-atlas.py`](../../scripts/build-xray-atlas.py); none of the reference project's JavaScript, shaders, or UI code is copied. The source HTML is not included in this repository. The exact upstream BodyParts3D object IDs and reference author's transformation history cannot be independently reconstructed from the published HTML.

The [archived BodyParts3D README](https://dbarchive.biosciencedbc.jp/data/bodyparts3d/20090209/README_e.html) confirms CC BY-SA 2.1 Japan for the historical dataset. The [current BodyParts3D license page](https://dbarchive.biosciencedbc.jp/en/bodyparts3d/lic.html) now says CC BY 4.0; these extracted derivatives retain the historical **[CC BY-SA 2.1 Japan](https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en)** notice supplied with their immediate source. Attribution, indication of adaptation, and ShareAlike terms apply to the atlas geometry and adaptations. Neither DBCLS nor the review author endorses this mirror.

| Atlas asset | Contents | SHA-256 |
|---|---|---|
| `atlas-head.glb` | Named meshes `eyes`, `cerebrum`, `hindbrain`, `muscles`, `cranium`, `jaw`, `skin` in one coordinate space | `ebd42c50da7caf67c88a3a11f283fb88d8eae0cb14e4e4547977b71232d32d2e` |
| `atlas-hand.glb` | `hand_palm` and 15 named finger bone segments | `fa5ea688440ac32756699a7c47576839fd67c48d9ee9be32f49e657dc00762cd` |

The atlas is **+Y up, +Z anterior, centimeters**. Do not normalize head meshes separately: all seven nodes share exact source coordinates. `registerAtlasHead` maps source centimeters into the video plane using the manifest's MediaPipe fit landmarks and a least-squares scale/translation, then applies the user's calibration about the fitted centroid. It takes unmirrored landmarks; the page mirrors the camera and overlay together. Manifest labels are model-space points, including a `jaw` flag for the mandible label. The jaw rotates about `[0, 0.8408003349546529, -3.800182937390197]` centimeters; opening is an illustrative hinge. The skin mesh can supply an outline or veil, with its own renderer transparency. The skin top is above forehead landmark 10, so fitting should not shrink the skull dome to the visible forehead.

Hand bone segments are locally directed from X≈0 to X≈1. For a tracked segment `a→b`, transform the named `hand_b_a_b` mesh so local +X spans those landmarks; local +Y is the across-knuckle direction and +Z is the palm normal. `hand_palm` local +X spans wrist 0→index knuckle 5, +Y spans wrist 0→pinky knuckle 17, and +Z is their oriented normal. These are rigid visual approximations; no individual carpal articulations or subject-specific bone dimensions are inferred.

These are visual anatomy references, not diagnostic or patient-specific images. Keep these credits with redistributed geometry or adaptations.

## Earlier independently sourced assets

Runtime modification (2026-11-13): the earlier pinned skull's connected mandible and two lower-tooth islands were separated in memory for illustrative articulation. The source GLB remains unchanged. The assets below are retained as legacy references while the shared atlas is integrated.

These models are local browser assets. Do not remove their source credits when redistributing them.

| Asset | Source and credit | License | SHA-256 |
|---|---|---|---|
| `scattering-skull.glb` | [Khronos glTF Sample Assets / ScatteringSkull](https://github.com/KhronosGroup/glTF-Sample-Assets/tree/main/Models/ScatteringSkull), model by Vladimir Petkovic, © 2025 Adobe Inc. | [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) | `339EAFCE3FDBC4175ED4798ADDBA7D0C175CB0DAB316E9D91ABC053422050A00` |
| `brain.glb` | [OrganUI brain-3d](https://github.com/organui/brain-3d/tree/main/public/models), adapted from BodyParts3D © The Database Center for Life Science | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) | `1E8D62F8579C195A85CF81790CD74B7D1D158E182F418767668089E209F0C478` |
| `muscles.glb` | [OrganUI muscles-3d](https://github.com/organui/muscles-3d/tree/main/public/models), adapted from BodyParts3D © The Database Center for Life Science | [CC BY-SA 2.1 Japan](https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en) | `615ED2CF0D5CA9AA63F30BB806A65C740ED2AB057463A19505E19EFF2BF207CE` |

Exact downloaded URLs are `https://raw.githubusercontent.com/KhronosGroup/glTF-Sample-Assets/main/Models/ScatteringSkull/glTF-Binary/ScatteringSkull.glb`, `https://raw.githubusercontent.com/organui/brain-3d/main/public/models/brain.glb`, and `https://raw.githubusercontent.com/organui/muscles-3d/main/public/models/muscles.glb`. OrganUI's original attribution and modification notices are retained verbatim in `brain-ATTRIBUTION.md` and `muscles-ATTRIBUTION.md`. Any derived muscle geometry or imagery remains subject to the CC BY-SA license; the application code has its own license. Neither DBCLS nor the model authors endorse this mirror.

## Historical coordinate and calibration notes for the earlier renderer

- The renderer centers each loaded model at its bounding-box center and divides by its largest dimension. The skull raw bounds are approximately 0.204 × 0.253 × 0.339, with its base at y=0. Its longest axis, Z, is front-to-back depth; Y is anatomical height. Direct mesh projections confirm +Y is up and +Z shows the face toward the camera. No asset pre-rotation is needed.
- The whole brain is centered in its source GLB. After normalization, use local scale 0.56 and offset (0, 0.04, -0.08) within the skull pose; this places it inside the cranium.
- The muscle file contains a whole-body atlas. Show only named head muscles from `frontalis` through `lateral-pterygoid` (first 24 direct mesh nodes), excluding `platysma` and all other nodes. Center this subset, normalize by its largest dimension, then use local scale 0.62 and offset (0, -0.07, 0.15) within the skull pose. These illustrative values put the muscles around forehead-to-chin and leave the skull dome exposed.
- `registerSkull` uses MediaPipe landmarks 10 (forehead), 152 (chin), 33/263 (outer eyes), their depth estimates, and the actual video aspect. It maps unmirrored normalized image coordinates into an orthographic view with y ±1 and x ±aspect. The skull target height is 1.20 times the landmark-10-to-chin span and its center sits 0.12 span above the midpoint, extending the cranium about 0.22 span above landmark 10 while keeping the jaw near landmark 152. The UI mirrors video and overlay together. Calibration offsets are world units; rotations are degrees. No camera intrinsics or physical skull measurements are available, so depth and cross-source layer positions require visual calibration on each camera.
