Hi, I’ve noticed that when using the PBRMaterial.PBRMATERIAL_ALPHATEST mode, the material on the exported USDZ model is not transparent.
I tested exporting to GLB, and transparency works correctly there. Exporting to USDZ works correctly with PBRMATERIAL_ALPHABLEND, but not with PBRMATERIAL_ALPHATEST.
I have prepared the playground to reproduce this issue:
Btw. I needed to add setTimeout to avoid this error in Tools.Download function:
“OffscreenCanvas.convertToBlob: Cannot get blob from empty canvas. ToBlob tools.ts:895 p dumpTools.ts:200”
Mabye you use offscreen canvas to transform textures and it is not ready to be downloaded, or the size is empty, because the texture is not loaded yet. I am not sure.
Btw. I needed to add setTimeout to avoid this error in Tools.Download function:
“OffscreenCanvas.convertToBlob: Cannot get blob from empty canvas. ToBlob tools.ts:895 p dumpTools.ts:200”
It’s probably that the texture hasn’t finished loading yet, and the exporter doesn’t check (or wait) for it. Sounds like we should change that.