Search code examples
gltfsceneform3d-modelling

glTF models are red in sceneform


So I have some gltf models I generated and have uploaded them to a url to load them at runtime within Sceneform. When I open the models on windows, it looks great, but when I try to place the objects within Sceneform the models become red. I am unsure why this is happening and would appreciate any pointers.

Object opened in 3D Viewer
enter image description here

Object when placed in Sceneform
enter image description here

The jellyfish gltf model example in case those got corrupted somehow: GLTF Model

.bin file is here, however I don't think looking at this will help much: GLTF .bin

Thanks!


Solution

  • I discovered the issue was due to a malformed glTF file. You can use Kronos' glTF online validator at this link. https://github.khronos.org/glTF-Validator/

    In case anyone is having the same issue, make sure the file is not malformed or try using a different file format like GLB.