blender: glTF import of Draco-encoded model fails
Nixpkgs version
- Stable (25.11)
Describe the bug
Blender has the ability to import glTF models where the binary chunk is encoded with draco compression by Google. The official blender binaries from https://builder.blender.org/download/daily/ import these files correctly, but the nixpkgs blender does not.
Additional context from the reported issue in KhronosGroup's repo: https://github.com/KhronosGroup/glTF-Blender-IO/issues/2662
Steps to reproduce
-
Open NixOS packed blender
-
Try to import a draco-compressed glb file
-
See the file fail to import
-
Download and extract an the official blender build from https://cdn.builder.blender.org/download/daily/archive/blender-5.1.0-candidate+v51.f81ba283659c-linux.x86_64-release.tar.xz
-
Run the binary with nixGL+nix-alien wrapper (
nix run --impure github:guibou/nixGL --override-input nixpkgs nixpkgs/nixos-unstable -- nix run github:thiagokokada/nix-alien -- ./blender) -
Import the same file again
-
See the file import correctly
Expected behaviour
The blender package should follow the same behaviour as the official blender binary
Screenshots
No response
Relevant log output
$ blender
15:20:11 | INFO: Data are loaded, start creating Blender stuff
15:20:11 | INFO: Blender create Mesh node 0
15:20:11 | INFO: Draco Decoder: Decode primitive [unnamed]
DracoDecoder | Decoded 0 vertices, 0 indices
15:20:11 | WARNING: Draco Decoder: Index count of accessor and decoded index count does not match. Updating accessor.
15:20:11 | WARNING: Draco Decoder: Vertex count of accessor and decoded vertex count does not match for attribute NORMAL. Updating accessor.
15:20:11 | WARNING: Draco Decoder: Vertex count of accessor and decoded vertex count does not match for attribute POSITION. Updating accessor.
15:20:11 | INFO: glTF import finished in 0.01s
$ nix run --impure github:guibou/nixGL --override-input nixpkgs nixpkgs/nixos-unstable -- nix run github:thiagokokada/nix-alien -- ./blender
Unable to find 'libwayland-client.so'
16:42:40 | INFO: Data are loaded, start creating Blender stuff
16:42:40 | INFO: Blender create Mesh node 0
16:42:40 | INFO: Draco Decoder: Decode primitive [unnamed]
DracoDecoder | Decoded 24 vertices, 36 indices
16:42:40 | INFO: glTF import finished in 0.00s
Additional context
This is not a duplicate of https://github.com/NixOS/nixpkgs/issues/217921 because that is for exporting
System metadata
nix-shell -p nix-info --run "nix-info -m"
- system:
"x86_64-linux" - host os:
Linux 6.12.67, NixOS, 25.11 (Xantusia), 25.11.20260128.fa83fd8 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.2 - nixpkgs:
/nix/store/vl17kg85iryyjyf114vkqzskn7s9d5x5-source
Notify maintainers
@amarshall @veprbl
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- [x] I assert that this is a bug and not a support request.
- [x] I assert that this is not a duplicate of an existing issue.
- [x] I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a :+1: reaction to issues you find important.