mirror of
https://github.com/lhns/steam-frame-nix.git
synced 2026-10-06 03:00:13 +02:00
VR pet: model sources in the repo
The Toon Cat (sources/toon-cat/), the Tuxedo Cat glTF (sources/tuxedo-cat/)
and the Quaternius Shiba Inu and Fox (models/{shiba,fox}/model.glb), each
byte-identical to the previously fetched file and with a LICENSE.md
(author, original URL, licence, changes). The build no longer downloads
them; three.js (preview only) still comes from npm. The baked frames,
model dirs and icons are unchanged.
This commit is contained in:
1 parent
77085bad8a
commit
4819ea26a7
15 files changed
+16201
-47
No files matched your search
+3
-3
@@ -7,7 +7,8 @@ scripts in `modules/pet/` point here). Credits of the built-in models:
|
||||
Every model is a folder with a `model.json` (its spec) and any files the
|
||||
spec names (a texture, a `.glb`, a thumbnail, a Blender script). The
|
||||
built-in ones are `modules/pet/models/<id>/`, found by `builtins.readDir`
|
||||
(nothing else lists them). Your own go into `steamFrame.pet.extraModels`:
|
||||
(nothing else lists them); an animal's source is in its folder with a
|
||||
`LICENSE.md`, the cat's in `modules/pet/sources/`. Your own go into `steamFrame.pet.extraModels`:
|
||||
either such a folder (`corgi = ./pets/corgi;`) or the spec as an attrset,
|
||||
with files as Nix paths (`calico = { name = "Calico"; png = ./calico.png; };`).
|
||||
Rebuild, and the model shows up in the pet's ⋯ menu and in
|
||||
@@ -171,8 +172,7 @@ it) and relax the ears on top at `Ear2` (sleep).
|
||||
{
|
||||
"name": "Shiba Inu", "kind": "gltf", "order": 10,
|
||||
"credit": "Shiba Inu, Ultimate Animated Animal Pack by Quaternius, CC0 1.0",
|
||||
"src": { "url": "https://static.poly.pizza/ba6d0ee3-bcc0-4ef0-9d3c-a3e245b41c77.glb",
|
||||
"hash": "sha256-nL1PHhL4UCQSbqtqLFcGwJkZbfGhDbdObItnusP/9Uo=" },
|
||||
"src": "model.glb",
|
||||
"height": 0.35,
|
||||
"feet": ["FrontLowerLeg.L_end", "FrontLowerLeg.R_end", "BackLowerLeg.L_end", "BackLowerLeg.R_end"],
|
||||
"follow": { "IKFrontLeg.L": "FrontLowerLeg.L", "IKFrontLeg.R": "FrontLowerLeg.R",
|
||||
|
||||
+2
-2
@@ -53,8 +53,8 @@ steamFrame.pet.enable = true;
|
||||
|
||||
The first switch bakes the models: a few minutes on the Frame and about
|
||||
0.5 GB in the store (1.1 GB without `auto-optimise-store`, which hardlinks
|
||||
the coats' copies of the cat's frames); the sources are fetched at build
|
||||
time (no Blender needed for the built-in models). Adding your own model, the spec and the
|
||||
the coats' copies of the cat's frames); the model sources are in this
|
||||
repository (no model download, no Blender needed for the built-in models). Adding your own model, the spec and the
|
||||
animation mapping: [VR pet models](pet-models.md). A model of a character
|
||||
someone else owns belongs in your own `extraModels` with `"private": true`
|
||||
([private models](pet-models.md#private-models)), never in this repository.
|
||||
|
||||
Reference in new issue
Block a user