nixpkgs icon indicating copy to clipboard operation
nixpkgs copied to clipboard

blender: glTF import of Draco-encoded model fails

Open Stroopwafe1 opened this issue 8 months ago • 0 comments

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

  1. Open NixOS packed blender

  2. Try to import a draco-compressed glb file

  3. See the file fail to import

  4. 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

  5. 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)

  6. Import the same file again

  7. 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

Is this issue important to you?

Add a :+1: reaction to issues you find important.

Stroopwafe1 avatar Mar 15 '26 15:03 Stroopwafe1