Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files with external http:// uri refererences can't be procesed with gltf-pipeline #666

Open
hybridherbst opened this issue Jul 24, 2024 · 2 comments

Comments

@hybridherbst
Copy link

I'm trying to convert some old glTF 1.1 files to glTF 2.0.

While that works in general, it seems that external references throw up gltf-pipeline:

image

Here's an example:

https://storage.googleapis.com/assets.icosa.gallery/63208108939333337/63210051195686758/GLTF/sketch.gltf
https://storage.googleapis.com/assets.icosa.gallery/63208108939333337/63210051195686758/GLTF/sketch.bin

To reproduce:

  • download the two files above
  • run gltf-pipeline -i sketch.gltf -o sketch.glb
  • note the exception being thrown

Expected
External references are kept as external references

Additional Context
While the issue here is happening during glTF 1.1 -> glTF 2.0 conversion, I believe this also affects general use with glTF 2.0.

@andybak
Copy link

andybak commented Jul 24, 2024

To add some detail - this is (as far as I know) specifically a Tilt Brush thing. But there's a fair number of Tilt Brush GLTF v1 files out in the wild.

Is there any reason gltf-pipeline shouldn't treat file references as opaque unless requested to handle them?

@hybridherbst
Copy link
Author

hybridherbst commented Jul 24, 2024

Here's a glTF file without the tiltbrush extension(s) that has the same issue:
needle_godot_plush_ref.gltf.zip

This one is even simpler (just a grey sphere):
NeedleSphereReference.gltf.zip

Quick test:

Tool Can load these files
model-viewer
needle-engine
Gestaltor
glTF Validator
glTFast
UnityGLTF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants