atteneder / KtxUnity

Load KTX and Basis Universal textures at runtime
Apache License 2.0
223 stars 42 forks source link

Tiling/offset data is not correct #34

Closed M4kHack closed 3 years ago

M4kHack commented 3 years ago

Hi Atteneder,

I'm loading glasses and the texture on the lenses does not render correctly. Is it a unity setting? Something wrong with the texture compression? something els?

Everything works fine if I load it in https://gltf-viewer.donmccurdy.com/

If you have any idéa let me know=)

LensIssue

//M4k

M4kHack commented 3 years ago

Update: It seems to be a tiling/offset issue, I can manually adjust it in the editor, but I should not have to do this? Somehow this data is not read correctly in unity.

Tiling

atteneder commented 3 years ago

Hi,

KtxUnity just provides a Texture2D plus orientation information. What you do with it (and how it is applied correctly) is up to other levels of your logic.

If you use this in the context of glTF (like loading with glTFast), then the question is, why is the correct tiling/offset not applied by the glTF library. In that case it's again not an issue of KtxUnity.

Feel free to re-open if I missed something or you disagree.