# Third-party assets

All assets below are served locally; no account or external service is required while playing. Character and environment asset sources and licenses are listed below. Voice sources are documented separately.

## Characters and animation — Quaternius / Tomás Laulhé

- Universal Base Characters, Standard: https://quaternius.com/packs/universalbasecharacters.html
- Modular Character Outfits — Fantasy, Standard: https://quaternius.com/packs/modularcharacteroutfitsfantasy.html
- Universal Animation Library, Standard: https://quaternius.com/packs/universalanimationlibrary.html

Original license notices are in `licenses/`. This project uses the male and female peasant outfits, heads extracted from the base characters, parted hair/buns, and three animation clips: Walk_Loop, Idle_Loop, Idle_Talking_Loop.

Adaptations: meshes and animations packaged as compact GLB files, unused geometry/tracks removed, textures resized to 512–1024 pixels and encoded as JPEG for download and GPU memory budgets, head/hair meshes rebound to the outfit skeleton, animation rotations adjusted for the target bind pose. Preparation script: `tools/prepare-assets.py`.

## Surface textures — Poly Haven (CC0)

- Cobblestone Floor 08: https://polyhaven.com/a/cobblestone_floor_08
- Rough Plaster 03: https://polyhaven.com/a/rough_plaster_03
- Weathered Brown Planks: https://polyhaven.com/a/weathered_brown_planks
- License: https://polyhaven.com/license

The game includes 1K diffuse, OpenGL normal and roughness maps from these materials. Roof patterns and contact-shadow masks are generated by the game.

## Three.js additions

GLTFLoader, BufferGeometryUtils and SkeletonUtils are from Three.js 0.180.0, MIT license (`vendor/three/LICENSE`). Import paths were changed to use the local Three.js module.

## Russian dialogue

The five original game lines in `voices/dialogue.json` were synthesized offline with [Piper 2023.11.14-2](https://github.com/rhasspy/piper/releases/tag/2023.11.14-2), using the [Denis](https://huggingface.co/rhasspy/piper-voices/tree/main/ru/ru_RU/denis/medium) and [Irina](https://huggingface.co/rhasspy/piper-voices/tree/main/ru/ru_RU/irina/medium) Russian voice models. Only the generated mono WAV files are distributed here; neither the synthesizer nor model weights are shipped to browsers.

For the version 0.7 dialogue, female clips use a modest 1.14× offline pitch adjustment with compensated synthesis pace and a 160 Hz high-pass filter. Sang Som and the digit 9 have explicit Russian pronunciation text in the manifest. The synthetic leaf rustle introduced in 0.7 was removed in 0.7.1. In 0.7.1, two question lines received an offline pitch contour using [Praat/Parselmouth overlap-add resynthesis](https://parselmouth.readthedocs.io/en/stable/examples/pitch_manipulation.html), preserving their timing. Only generated WAV audio is distributed; the optional build tools are not bundled with the browser game.

Original model cards are preserved in `licenses/piper-*-MODEL_CARD.txt`. The Denis card identifies its training dataset as CC0; the Irina card lists RHVoice as its source and its dataset license as Unknown. We do not label those model weights or datasets as CC0. The build script is `tools/prepare-voices.py`; the dialogue manifest records voice model, pace and generated duration.

## Horse — Quaternius / Tomás Laulhé (CC0)

Source: [Ultimate Animated Animal Pack](https://quaternius.com/packs/ultimateanimatedanimals.html), `glTF/Horse.gltf` in the author's public download folder. Original notice: `licenses/horse-CC0.txt`. `models/horse.glb` is derived from the original mesh and retains its skeleton and Idle animation. Adaptations in `tools/prepare-horse.py`: welded vertices, partial Loop subdivision, smooth normals, blended chestnut vertex colors, interpolated and normalized skin weights, adjusted materials, removal of unused animation buffers. The result contains 8,326 triangles. `src/wagon.js` adds procedural coat shading, facial markings, breathing, ear twitches, neck movement and tail swishes. The model is scaled and positioned in the game.

The wagon, tree branching geometry, foliage placement and linen pattern are generated by project code (`src/wagon.js`, `src/trees.js`). Tree textures are credited below.

## Tree textures (version 0.5)

Oak and ash cutout textures: Daniel Greenheck, [EZ-Tree](https://github.com/dgreenheck/ez-tree), MIT license (`licenses/EZ-Tree-MIT.txt`). Bark014 diffuse, OpenGL normal and roughness maps: [ambientCG Bark014](https://ambientcg.com/view?id=Bark014), CC0, distributed in the same project's texture directory. Original texture attribution is in `licenses/EZ-Tree-textures.md`. Files were obtained from commit `dcf309bd86bd521083d9c70f01f2de45fdc7c457`. The tree generator and wind shader in this game are project code; the EZ-Tree library is not included.

## Bull terrier (version 0.9) — kenchoo / Real Slim Shady (CC BY 4.0)

- Animated rebuild: **kenchoo**, [Bull Terrier](https://sketchfab.com/3d-models/bull-terrier-b5edaaa979c946f4988ac4123dd41dc1).
- Original model: **𝕽𝖊𝖆𝖑 𝕾𝖑𝖎𝖒 𝕾𝖍𝖆𝖉𝖞** (Real Slim Shady), [Bull Terrier 3D Model](https://skfb.ly/oRsOp), credited by kenchoo.
- License: [Creative Commons Attribution 4.0 International](https://creativecommons.org/licenses/by/4.0/).
- Source supplied by the user: `bull-terrier.zip`, `source/terrier.glb`.

`models/bull-terrier.glb` retains the original 10,657-triangle mesh, 34-bone skeleton, textures, morph target and 8.667-second idle animation. Adaptations: RGB texture maps encoded as JPEG at quality 92; emissive removed so scene lighting controls the coat; roughness adjusted; whiskers use alpha masking. The source animation contains standing movements, not a run cycle. `src/dog.js` adds a distance-driven trot with inverse kinematics, grounded paw orientation, braking, pauses and the existing street route, while retaining the source head/tail/blink animation. Model scaled to 0.72 m including ears. Build command: `python3 tools/prepare-dog.py /path/to/source/terrier.glb assets/models/bull-terrier.glb` (Pillow required only offline).

The original procedural dog from version 0.8 has been replaced. No endorsement by the model authors is implied.

## Dog bark (version 0.9.2) — pauliuw (CC0)

Source: [Dog sounds](https://opengameart.org/content/dog-sounds) by **pauliuw**, [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/). Download: https://opengameart.org/sites/default/files/dog.7z . This version replaces the earlier Brandon Morris / HaelDB clips.

Source files `Dog/Dog Bark.wav` and `Dog/Dog Bark 2.wav` are complete individual recorded barks. Adaptations: pitch lowered to 0.84×, low-frequency body enhanced, gentle saturation, removal of sub-bass rumble, peak normalized to 0.92, short boundary fades. Output: mono PCM16, 22.05 kHz, approximately 0.469 and 0.397 seconds. Source recordings are 8 kHz; upsampling does not add detail. Build: `python3 tools/prepare-barks.py /path/to/extracted/Dog assets/sounds`. Only the prepared WAVs are served at runtime. Playback preserves the full attack and uses the existing animation cues and spatial attenuation.
