Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect material texture offset value on KTX2-based compressed GLB import #709

Closed
umeraamir-arthur opened this issue Mar 11, 2024 · 2 comments

Comments

@umeraamir-arthur
Copy link

Hi @hybridherbst @pfcDorn

I'm trying to import a GLB using UnityGLTF. I've the latest version of it installed through a forked repo of mine. I've a GLB which I've compressed using gltf-transform. I've only compressed its textures to KTX2. This same GLB is perfectly working with GLTFast but it's UVs are not mapped correctly with UnityGLTF.

After some research, I found out that this issue is not with UVs import but it is the offset of the textures which was not imported correctly. As shown in pictures below.
image
image

I've also attached the GLB. Can you guys please guide me on what should be the possible quick fix for this issue. Really appreciate your response.
Santa_compressed.zip

pfcDorn added a commit to prefrontalcortex/UnityGLTF that referenced this issue Mar 12, 2024
@pfcDorn
Copy link
Contributor

pfcDorn commented Mar 12, 2024

Hi! Thanks for the test file!
Your are correct, the offset was wrong. Was only correct when there is a TextureTransform extension on it.

@umeraamir-arthur
Copy link
Author

Thankyou @pfcDorn
You guys are a gem.... :)

umeraamir-arthur added a commit to arthur-technologies/UnityGLTF-forked-prefrontalcortex that referenced this issue Mar 13, 2024
…tx-textures

fixed KhronosGroup#709 - wrong texture uv offset when using flipped textures (ktx)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants