Geo renderer improvements

This commit is contained in:
2026-11-21 19:24:09 -03:00
parent 717d2cb766
commit 4bdf5203d4
6 changed files with 141 additions and 18 deletions
+4 -2
View File
@@ -322,8 +322,10 @@ get the id `<mod id>:<name>`. From the file's first geometry, bworld uses:
- each bone's `name`, `parent`, `pivot` and `rotation`,
- each cube's `origin`, `size`, `uv`, `inflate`, `pivot` and `rotation`.
Cubes need box UV: per face UV isn't supported. A bone's parent has to come before it. The model faces -z, 16 pixels to
a block with its feet at 0, and shows the way Blockbench shows it.
Cubes can use box UV (`"uv": [u, v]`) or per face UV (`"uv": { "north": { "uv": [u, v], "uv_size": [w, h] }, ... }`),
where a face that's left out isn't drawn and a negative size flips it. Faces are drawn from both sides, like Bedrock's
`entity_alphatest` material, so a flat cube needs only one textured face. A bone's parent has to come before it. The
model faces -z, 16 pixels to a block with its feet at 0, and shows the way Blockbench shows it.
There are no animation files yet. The whole model turns with the entity, and bones with Minecraft's humanoid names move
on their own: