You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m encountering an issue with an imported GLTF model that uses KTX textures on an iOS device.
The textures appear to be flipped along the Y-axis, but this only occurs on the device; everything works fine in the editor.
Note: I am using URP, and shaders are imported via shader variants
I assumed that you imported at design-time and tried to reproduce.
TL;DR: Don't use KTX for this use case, but go with regular PNG/JPGs in glTF.
I think you entered unexplored territory there. The KTX for Unity plugin can import those bundled KTX textures, but it just transcodes them to a format your host computer supports (the machine you develop on). So my first attempt to re-produce failed, because on the Intel Mac it was transcoded to DXT, which is not supported on my iPhone. On an ARM Mac, it is transcoded to ETC and I did not see a problem.
You could try to figure out, which format you actually end up with.
But overall, this KTX workflow does not make sense to me at all.
I’m encountering an issue with an imported GLTF model that uses KTX textures on an iOS device.
The textures appear to be flipped along the Y-axis, but this only occurs on the device; everything works fine in the editor.
Note: I am using URP, and shaders are imported via shader variants
Files
glb file to test
Attach or link to .gltf/.glb files that trigger the bug.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Model textures are not flipped
Screenshots
![image](https://private-user-images.githubusercontent.com/30076876/357872686-fcc45697-fb2c-4b62-bb90-cd7714b08619.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3ODgxNTUsIm5iZiI6MTczOTc4Nzg1NSwicGF0aCI6Ii8zMDA3Njg3Ni8zNTc4NzI2ODYtZmNjNDU2OTctZmIyYy00YjYyLWJiOTAtY2Q3NzE0YjA4NjE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDEwMjQxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVjNWEwNjUyMDhlMzNlNmNjOTU5NzMyNWQyZDQyZmE4Y2E1MjhhNmYxZTdiOTBhNmQxZjliMDIwNWE5NTdjNWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.k7FJ4jgMI8P7CPsytxJoFKdJGkuZwRE6PmhW_dydZrc)
In application
In editor
![image](https://private-user-images.githubusercontent.com/30076876/357882782-b67f2055-fca1-4049-b26e-af30d5b2c583.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3ODgxNTUsIm5iZiI6MTczOTc4Nzg1NSwicGF0aCI6Ii8zMDA3Njg3Ni8zNTc4ODI3ODItYjY3ZjIwNTUtZmNhMS00MDQ5LWIyNmUtYWYzMGQ1YjJjNTgzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE3VDEwMjQxNVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4OTIyZTQ4MzEwZmFkYWZhZDUyOWIzNGFlY2JmYWQwZmM3MDY0ZGE1YTY5Zjk0NTUwNDFkMTQxNTJjY2JhYTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.foQGWTk5ZpDQAPpAAx9hyjOIqOdg3jIJV1EJpYFNkHk)
glTFast version 6.7.1
ktx: version 3.4.1
Unity Editor version 2022.3.41
Universal Render Pipeline 14.0.11
iOS
Device: iPhone14 Pro
OS : iOS 17.5.1
The text was updated successfully, but these errors were encountered: