KhronosGroup / glTF-Blender-IO

Blender glTF 2.0 importer and exporter
https://docs.blender.org/manual/en/latest/addons/import_export/scene_gltf2.html
Apache License 2.0
1.49k stars 317 forks source link

Cannot import GLB from Tiltbrush #990

Closed SamuelAB closed 4 years ago

SamuelAB commented 4 years ago

Describe the bug When importing a GLB from a Google Tiltbrush export, it does not work.

To Reproduce Steps to reproduce the behavior:

  1. Go to IMPORT
  2. Click on GLtf 2.0
  3. Select the file to import
  4. See error

Expected behavior Importing the file should work

Screenshots image

.blend file/ .gltf included GLB file TEST FILE.zip

Version

Additional context These files originate from Google Tiltbrush

julienduroure commented 4 years ago

I can't reproduce here on linux. Trying with https://gltf-viewer.donmccurdy.com/, seems that the validator has 1 error linked to texture uri

donmccurdy commented 4 years ago

The error is because my viewer doesn't support has a bug with absolute URLs to external resources. In this case, there's a full URL for this image:

https://www.tiltbrush.com/shaders/brushes/TaperedMarker-d90c6ad8-af0f-4b54-b422-e0f92abe1b3c/TaperedMarker-d90c6ad8-af0f-4b54-b422-e0f92abe1b3c-v10.0-MainTex.png

The file itself is valid, as the warnings are minor.

I'm not sure whether it's reasonable for us to support absolute URLs of resources in this importer though. I wonder if tilt brush could export a self-contained file instead?

julienduroure commented 4 years ago

Thanks Don for the update. Anyway, I don't have any traceback here

scurest commented 4 years ago

I get that traceback on the blender-v2.82-release branch, but not on master.

edit: the offending line no longer exists, so this appears to already be fixed.

SamuelAB commented 4 years ago

@scurest I seem to have the latest version of Blender c.82a How can I try the newer "fixed" version?

scurest commented 4 years ago

Either reinstall the addon from the master branch in your copy of Blender 2.82, or download a 2.83 beta from https://builder.blender.org/download/.