glTF-Tools-for-Unity
glTF-Tools-for-Unity copied to clipboard
Unsupported texture format
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 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.
Thanks @bghgary let me make some tests and see if this fixes the issue.