Im working on a project for my schoolwork and im having a problem with importing gltf file in three.js. I make my gltf files with blender 2.9. So if i export gltf separate (+bin+textures) i can import a model with gltf loader but the problem is that textures that are meant to be transparent are not, even if i test the file on the online gltf loader they arent transparent. But if i export as embedded gltf everything works correctly on the online gltf viewer but in my project i get this error:
Uncaught (in promise) error { target: img, isTrusted: true, srcElement: img, eventPhase: 0, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, timeStamp: 768, … }
Does anyone have any idea whats wrong? I spent hours now trying different stuff and im almost sure that my node setup in blender is correct as i read some forums and also official documntation on Blender. Or maybe is there anything i can fix with separate exported gltf to make transparency working?
Thanks
.blend
that follows the Blender exporter documentation but doesn't appear correctly in glTF viewers when exported, it would be worth filing a bug on github.com/KhronosGroup/glTF-Blender-IO. For a glTF model that looks OK in a viewer but not in your code, you may need to share that code, or try asking on the forums of whatever WebGL engine you're using (discourse.threejs.org for three.js). – Don McCurdyr122
. You might have an older version in your project that may not have all the features that the editor does. – Marquizzo