glTF-Tools-for-Unity icon indicating copy to clipboard operation
glTF-Tools-for-Unity copied to clipboard

Unsupported texture format

Open antonio-gomez opened this issue 7 years ago • 2 comments

Hi @bghgary

When trying to export and tested with several models with correct PBR textures I'm getting the following message:

Unsupported texture format - needs to be ARGB32, RGBA32, RGB24, Alpha8 or one of float formats UnityEngine.Texture2D:EncodeToJPG(Int32) Gltf.Serialization.Exporter:ExportTexture(Texture2D, String, Boolean) (at Assets/Gltf/Editor/Exporter.cs:460) Gltf.Serialization.Exporter:ExportMaterial(Material) (at Assets/Gltf/Editor/Exporter.cs:330) Gltf.Serialization.Exporter:ExportNode(GameObject) (at Assets/Gltf/Editor/Exporter.cs:259)

antonio-gomez avatar Mar 24 '17 04:03 antonio-gomez

@antonio-gomez Thanks for the report! To work around this, please change the import settings of the texture to one of the uncompressed formats. I'll look into fixing this properly when I get the time.

bghgary avatar Mar 24 '17 05:03 bghgary

Thanks @bghgary let me make some tests and see if this fixes the issue.

antonio-gomez avatar Mar 24 '17 19:03 antonio-gomez