When I export a model with embedded textures it loads fine in windows 3d viewer and elsewhere, but if I don’t embed the textures (embedImages set to false on the exporter) it fails to load… Apparently there is an error… I ran the file through the validator:
{ "uri": "testgltf33.gltf", "mimeType": "model/gltf+json", "validatorVersion": "2.0.0-dev.3.3", "validatedAt": "2021-02-21T04:29:34.852Z", "issues": { "numErrors": 1, "numWarnings": 0, "numInfos": 0, "numHints": 0, "messages": [ { "code": "ONE_OF_MISMATCH", "message": "Exactly one of ('bufferView', 'uri') properties must be defined.", "severity": 0, "pointer": "/images/0" } ], "truncated": false }, "info": { "version": "2.0", "generator": "THREE.GLTFExporter", "extensionsUsed": [ "KHR_materials_unlit" ], "resources": [ { "pointer": "/buffers/0", "mimeType": "application/gltf-buffer", "storage": "data-uri", "byteLength": 4752 }, { "pointer": "/images/0" } ], "animationCount": 0, "materialCount": 1, "hasMorphTargets": false, "hasSkins": false, "hasTextures": true, "hasDefaultScene": true, "drawCallCount": 1, "totalVertexCount": 108, "totalTriangleCount": 36, "maxUVs": 1, "maxInfluences": 0, "maxAttributes": 4 }
}
but I’m not sure what exactly it is saying, and how to fix it…