Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
3.02k stars 1.12k forks source link

[Error] InvalidOperationException: the texture format ETC_RGB4 is not supported by the current image tracking subsystem #942

Closed Sami-AlEsh closed 2 years ago

Sami-AlEsh commented 2 years ago

What is the best texture import setting to be supported for image tracking in both platforms (Android & IOS) ? My current setting is : image

tdmowrer commented 2 years ago

There are APIs for querying supported formats on-device (docs), but in general only uncompressed formats are supported if I remember correctly. Note that the method to add an image to the database from a Texture2D is an extension provided for convenience. All you actually need is an array of black & white pixels if that helps you (docs).

Sami-AlEsh commented 2 years ago

Thanks @tdmowrer. I finished up using RGB24bit as texture format and it worked fine.