freetoplay Posted October 9, 2018 Share Posted October 9, 2018 I am getting glTF validation error when I export with unlit materials. Here is what the error looks like when I load it into the BabylonJS sandbox: { "uri": "Character.glb", "mimeType": "model/gltf+json", "validatorVersion": "2.0.0-dev.2.5", "validatedAt": "2018-10-09T01:41:05.107Z", "issues": { "numErrors": 8, "numWarnings": 1, "numInfos": 1, "numHints": 0, "messages": [ { "code": "UNSUPPORTED_EXTENSION", "message": "Unsupported extension encountered: 'KHR_lights'.", "severity": 1, "pointer": "/extensionsUsed/0" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/0/extensions/KHR_materials_unlit" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/1/extensions/KHR_materials_unlit" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/2/extensions/KHR_materials_unlit" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/3/extensions/KHR_materials_unlit" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/4/extensions/KHR_materials_unlit" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/5/extensions/KHR_materials_unlit" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/6/extensions/KHR_materials_unlit" }, { "code": "UNDECLARED_EXTENSION", "message": "Extension was not declared in extensionsUsed.", "severity": 0, "pointer": "/materials/7/extensions/KHR_materials_unlit" }, { "code": "NODE_EMPTY", "message": "Empty node encountered.", "severity": 2, "pointer": "/nodes/9" } ], "truncated": false }, "info": { "version": "2.0", "generator": "babylon.js glTF exporter for 3ds max 2017 v1.2.40", "extensionsUsed": [ "KHR_lights" ], "resources": [ { "pointer": "/buffers/0", "mimeType": "application/gltf-buffer", "storage": null }, { "pointer": "/images/0", "mimeType": null, "storage": "bufferView" }, { "pointer": "/images/1", "mimeType": null, "storage": "bufferView" }, { "pointer": "/images/2", "mimeType": null, "storage": "bufferView" }, { "pointer": "/images/3", "mimeType": null, "storage": "bufferView" } ], "hasAnimations": false, "hasMaterials": true, "hasMorphTargets": false, "hasSkins": false, "hasTextures": true, "hasDefaultScene": true, "primitivesCount": 9, "maxAttributesUsed": 3 } Does anyone know what's going on? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 9, 2018 Share Posted October 9, 2018 Pinging @bghgary Quote Link to comment Share on other sites More sharing options...
bghgary Posted October 9, 2018 Share Posted October 9, 2018 @kcoley There are a couple of things wrong with the exporter. It seems to be exporting the unlit extension without putting the extension into the 'extensionsUsed' array. KHR_lights is old and needs to be renamed KHR_lights_punctual. Can you take a look? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 9, 2018 Share Posted October 9, 2018 @freetoplay are you exporting from babylon.js or from a DCC tool like 3dsmax? Quote Link to comment Share on other sites More sharing options...
bghgary Posted October 9, 2018 Share Posted October 9, 2018 @Deltakosh The validator reports where it's coming from. 15 hours ago, freetoplay said: "generator": "babylon.js glTF exporter for 3ds max 2017 v1.2.40", Quote Link to comment Share on other sites More sharing options...
Guest Posted October 9, 2018 Share Posted October 9, 2018 Ok:) I stand corrected Quote Link to comment Share on other sites More sharing options...
kcoley Posted October 11, 2018 Share Posted October 11, 2018 @freetoplay @bghgary looking into this. Quote Link to comment Share on other sites More sharing options...
kcoley Posted October 11, 2018 Share Posted October 11, 2018 @freetoplay @bghgary I just made an update to the 3ds Max Babylon exporter which now uses the KHR_lights_punctual extension and sets KHR_materials_unlit in extensionsUsed when exporting to glTF/glb GameMonetize and freetoplay 2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.