getting error on missing textures #1596
Replies: 2 comments
-
Hi @saadatali48! Currently missing textures are treated as an error – parsing exits, and there is no option to disable this. I think the only 'quick' workarounds would be:
Longer term I'd be open to PRs providing an option on the I/O classes to handle missing textures gracefully (remove the texture? keep but ignore it in processing?) but this would require some planning and work. |
Beta Was this translation helpful? Give feedback.
-
For now I did the solution B, try to read buffer |
Beta Was this translation helpful? Give feedback.
-
I am reading glb buffer as below
const document = await io.readBinary(model);
and getting the error below.
Error: Cannot resolve external images with binaryToJSON().
at exports.NodeIO.binaryToJSON (node_modules@gltf-transform\core\src\io\platform-io.ts:119:4)
at exports.NodeIO.readBinary (node_modules@gltf-transform\core\src\io\platform-io.ts:127:35)
at processGlbModel (src\utils\planOptions3dModels.ts:265:31)
The model (attached) has missing textures, but I want to handle this, if Textures are missing either remove them, or just ignore the missing texture error, and proceed with setting center of the model.
If this is not possible, Please highlight a way where I can remove the textures from buffer first and then proceed with readBinary() method.
Versions:
The Hinkle.zip
Beta Was this translation helpful? Give feedback.
All reactions