Search code examples
three.jsblender

Gltf file exported via GLTFExporter is grey color


I exported a glft file on this demo page. And then, I imported the file to Blender but 3d model looks grey color and seems missing color.

How to solve this problem? Or doesn't glft have color data?

I'm new to glft and Blender, I'd appreciate if you share any solutions or references what I should read to solve it.


Solution

  • When debugging something like this, the first step is to narrow down the source of the issue. If the model appears correctly on viewers like http://gltf-viewer.donmccurdy.com/ or https://sandbox.babylonjs.com/, then the exporter is probably doing its part correctly. If not, file a bug on the threejs repo about the exporter.

    If the Blender importer you're using can't load the file, I'd suggest filing a bug on that repository instead. I'd also suggest trying https://github.com/KhronosGroup/glTF-Blender-IO, if you haven't already.

    Finally, note that by default when Blender opens, textures are disabled in the viewport. You have to enable Texture, Material, or Rendered in the Viewport Shading menu:

    enter image description here