Skip to content Skip to sidebar Skip to footer

Getting An {"istrusted":true} Error When Using Gltfloader

QUESTION: Everything was working fine: I converted my FBX files to GLTF inside my /GLTF/ subfolder. Sadly, some geometry was missing from some of the converted files, so I tried to

Solution 1:

To debug this, you can drag the model into my debugging viewer and you'll see this message:

Missing texture: M_Med_Soldier_Body_BLACKKNIGHT_n.tga

Neither glTF nor web browsers support TGA textures, so the fact that it's referenced is a bug in the tool used to create this file. I'd recommend filing a bug on FBX2glTF.

However, if you look in the model folder, you'll see that same image is already there as a PNG (perhaps FBX2glTF converted it?). If you open the .gltf file in a text editor (I used Sublime Text) and search for "images", you'll find that incorrect TGA image reference. Rename it to .png and you'll see what I assume is the correct result:

screenshot of working knight model

Post a Comment for "Getting An {"istrusted":true} Error When Using Gltfloader"