Textures coming up as black/white for this specific model

This tiger model is displaying correctly in Blender.
But when I render this in Three.js, it is coming up as black.

In Gltf viewer, it is coming up as full white.

Textures seem to be okay since it is getting rendered correctly in Blender

What could be the possible issue here?

There should be a warning like this appearing in your JS console:

THREE.GLTFLoader: Unknown extension “KHR_materials_pbrSpecularGlossiness”.

This model uses the spec/gloss PBR workflow, which is no longer supported by THREE.GLTFLoader. You can convert the model to a metal/rough PBR workflow instead, using one of the methods mentioned in this thread:

@donmccurdy this is crazy man, thanks a lot!!!
Worked like a charm.

One more thing, is there any way to detect if spec PBR was used?

1 Like

Two quick ways would be:

  • (A) drop the file into https://gltf.report/, you’ll immediately get a pop-up about it.
  • (B) run it through this CLI and check the extension list for KHR_materials_pbrSpecularGlossiness
npm install --global @gltf-transform/cli

gltf-transform inspect path/to/scene.glb
1 Like