# Farm hospital (红星农场职工医院) attribution

The hospital beyond the ridge is built by the game; its props, its field
ambulance's chassis and its floors' textures are ready-made art. The
Sketchfab models are licensed under **Creative Commons Attribution 4.0
International (CC BY 4.0)**; each downloaded GLB's embedded `asset.extras`
names the author, the licence and the source page, and the files made from
them keep these in their `asset.extras.credits`. The Poly Haven models and
textures are **CC0 1.0** (public domain), credited here all the same.

## CC BY 4.0 models

| File | Prop | Model | Author | Source |
| --- | --- | --- | --- | --- |
| `props.glb` (`prop-bed`) | Ward beds | old metal bed | [supervacanea](https://sketchfab.com/supervacanea) | [Sketchfab](https://sketchfab.com/3d-models/old-metal-bed-46d7368dd7934c4fa3198d05789c88a6) |
| `props.glb` (`prop-bedside`) | Bedside cabinets | Army bedside table (low poly) | [sergeilihandristov](https://sketchfab.com/sergeilihandristov) | [Sketchfab](https://sketchfab.com/3d-models/army-bedside-table-low-poly-58c22522f0d847c9a0caf8c93b60810b) |
| `props.glb` (`prop-med-cabinet`) | Medicine cabinets | Military Medical Cabinet | [RquesT](https://sketchfab.com/RquesT) | [Sketchfab](https://sketchfab.com/3d-models/military-medical-cabinet-1acbdf5ac43c49e8aad25390e548d0e2) |
| `props.glb` (`prop-stretcher`) | Stretcher trolley | OLD Hospital Stretcher | [shubham_mishra](https://sketchfab.com/shubham_mishra) | [Sketchfab](https://sketchfab.com/3d-models/old-hospital-stretcher-f6f350bf2c754644a69dac2ac21e1230) |
| `props.glb` (`prop-iv-stand`) | Drip stands | IV Stand | [teeart](https://sketchfab.com/teeart) | [Sketchfab](https://sketchfab.com/3d-models/iv-stand-dd3115aafb0e4a628f261d0de7a787b9) |
| `props.glb` (`prop-mug`) | Enamel mugs | Soviet Enamel Mug | Rusty-exe ([dustyrusty](https://sketchfab.com/dustyrusty)) | [Sketchfab](https://sketchfab.com/3d-models/soviet-enamel-mug-15418a900807467495ea46f574effd20) |
| `ambulance.glb` | NJ130 field ambulance's chassis and cab | GAZ_51 | [SunrenTR](https://sketchfab.com/SunrenTR) | [Sketchfab](https://sketchfab.com/3d-models/gaz-51-0ae8da9a719f4f7bb62f6535d9f7da33) |

- License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- Full license text: [Creative Commons legal code](https://creativecommons.org/licenses/by/4.0/legalcode)

## CC0 models and textures (Poly Haven)

| File | Use | Asset | Author |
| --- | --- | --- | --- |
| `props.glb` (`prop-bed-frame`) | The duty nurse's bed | [Old Bed Frame](https://polyhaven.com/a/old_bed_frame) | Luca B |
| `props.glb` (`prop-pot`) | Enamel pot | [Enamel Pot 01](https://polyhaven.com/a/pot_enamel_01) | Kuutti Siitonen |
| `props.glb` (`prop-jug`) | Jug | [Jug 01](https://polyhaven.com/a/jug_01) | Kuutti Siitonen |
| `props.glb` (`prop-medical-box`) | First-aid boxes | [Medical Box](https://polyhaven.com/a/medical_box) | Ulan Cabanilla |
| `props.glb` (`prop-cupboard`) | Cupboards | [Painted Wooden Cabinet](https://polyhaven.com/a/painted_wooden_cabinet) | Kirill Sannikov |
| `props.glb` (`prop-wheelchair`) | Wheelchair | [Wheelchair 01](https://polyhaven.com/a/wheelchair_01) | Garreth Dean |
| `props.glb` (`prop-crutches`) | Crutches | [Vintage Crutches 01](https://polyhaven.com/a/vintage_crutches_01) | Kuutti Siitonen |
| `props.glb` (`prop-stool`) | Stools | [Chinese Stool](https://polyhaven.com/a/chinese_stool) | Kirill Sannikov |
| `props.glb` (`prop-bench`) | Benches in the corridors | [Painted Wooden Bench](https://polyhaven.com/a/painted_wooden_bench) | Kirill Sannikov |
| `props.glb` (`prop-thermos`) | Thermoses | [Modified Thermos](https://polyhaven.com/a/modified_thermos) | Alex Weber |
| `src/assets/hospital/terrazzo.webp` | The hall's, corridors' and theatre's terrazzo | [Terrazzo Tiles](https://polyhaven.com/a/terrazzo_tiles) | Amal Kumar |
| `src/assets/hospital/paint.webp` | The wards' red-brown floor paint | [Painted Concrete 02](https://polyhaven.com/a/painted_concrete_02) | Rob Tuytel |
| `src/assets/hospital/boards.webp` | The offices' boards | [Old Wood Floor](https://polyhaven.com/a/old_wood_floor) | Guillaume Monsergent |
| `src/assets/hospital/cement.webp` | Cement floors, the drive and the aprons | [Concrete Floor Worn 001](https://polyhaven.com/a/concrete_floor_worn_001) | Dimitrios Savva, Rico Cilliers |

- License: [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)

## Project adaptation

[`scripts/build-hospital-models.ts`](../../../../scripts/build-hospital-models.ts),
with the shared steps of [`scripts/north-model-kit.ts`](../../../../scripts/north-model-kit.ts),
fetches the Sketchfab models from the public
[Objaverse distribution](https://huggingface.co/datasets/allenai/objaverse) and
the Poly Haven ones from Poly Haven, and changes them for the game:

- Each prop is turned to face +z, scaled to its real size in metres (a ward
  bed 2.0 m long, a bedside cabinet 0.8 m high, the medicine cabinet 1.7 m,
  the stretcher 2.0 m long, a drip stand 1.85 m, a mug 8.5 cm, a stool 46 cm,
  a thermos 36 cm, the wheelchair 1.0 m, the crutches 1.3 m) and stood on the
  ground at the origin.
- Simplified where triangles were wasted on small things (the Poly Haven bed
  frame 50,000 triangles to 6,000, the wheelchair 40,000 to 7,300, the mug,
  pot, jug, thermos, crutches, first-aid box and drip stand cut down), and
  welded.
- Their materials made metal-rough and matte (no metalness over 0.6), their
  normal, roughness, metalness, occlusion and emissive maps left out: the
  props are seen at a few metres under the rooms' soft fill. The drip
  stand's chrome is a plain colour, its repeating map dropped. The
  wheelchair's teal is greyed and tinted toward a period chair's dark leather
  and worn chrome.
- Every prop's colours laid into one 2048 px WebP atlas shared by all of
  them, so the rooms draw every prop at once; each prop stays a node of its
  own (`prop-<name>`).
- The ambulance: the GAZ-51's cargo bed sides and tailboard removed (the
  hospital's box body is built on its chassis), the rest simplified (351,400
  triangles to about 49,000), 5.7 m long, its front to -z, its body's
  textures one 1024 px WebP atlas, its windows kept apart; its transmission
  removed.
- The floor scans are cut to 512 px repeats and graded: the terrazzo greyed,
  the painted concrete tinted to red-brown floor paint, the boards to
  red-brown. (The theatre's glazed tiles are drawn by the game.)

## Rebuilding

```sh
bun scripts/build-hospital-models.ts
```

The sources are cached in `node_modules/.cache/north/hospital`.
