no texture import glTF .glb file

robin.meier's icon

hi,

i'm reading a .glb file created with polycam using jit.gl.model. geometry loads but not the texture.

jit.gl.model: could not create texture
jit.gl.model: can't find texture *0

texture of same file displays fine in blender.

how can i display the texture of my file?

thanks!

file is here: https://www.dropbox.com/scl/fi/x6mmiawh5rcaywvhibfpo/head.glb?rlkey=1nwf0l6fbga2o9dgcj45b2a36&dl=1

Rob Ramirez's icon

We don't currently support embedded textures in GLTF files, but I can file a ticket to look at supporting for a future update. In the meantime simply export without embedding, or use one of the many tools available to convert your file.

I used the gltf-pipeline command line utility to do this, with the following steps:

  • install node if not already installed (e.g. brew install node)

  • install gltf-pipeline: npm install -g gltf-pipeline

  • run the command with -s to separate the resources:

  • gltf-pipeline -s -j -i ~/Downloads/head.glb


I've attached your file here in case it's useful.

head-separated.zip
application/zip 425.42 KB