bghgary / glTF-Tools-for-Unity

MIT License
43 stars 10 forks source link

Unsupported texture format #6

Open antonio-gomez opened 7 years ago

antonio-gomez commented 7 years ago

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)

bghgary commented 7 years ago

@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.

antonio-gomez commented 7 years ago

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