atteneder / KtxUnity

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

.ktx2 with .basis payload support? #25

Closed DerrickBarra closed 3 years ago

DerrickBarra commented 3 years ago

Quick question @atteneder , I know KtxUnity supports the .ktx and .basis formats, but does it support a .basis payload inside of a .ktx2 container?

DerrickBarra commented 3 years ago

I know throughout this repo you mention supporting KTX 2.0, but I haven't seen mention if you explicitly support the .ktx2 container. I'll eventually test this on my own, but if you could just give me a sanity check, that would help!

atteneder commented 3 years ago

Hi!

I must have missed your initial question, sorry about that.

Yes, it supports KTX version 2.0 (and 2.0 only). It also supports basis supercompression in KTX 2.0 files (ETC1s and UASTC mode, but no other format like uncompressed).

Did you have any trouble?

hth

DerrickBarra commented 3 years ago

Haven't actually tested them yet, but one of the tools we use optimizes models into glb format with .ktx2 container formatted basis textures. I was familiar with .ktx and .basis, but having a .ktx2 file surprised me.

I was commenting that this repo doesnt mention files with .ktx2 file extensions, only .ktx. I wasnt aware until I looked it up that the KTX2 format used the .ktx2 file extension.

Once I test the file I will close this thread if it loads without issue.

atteneder commented 3 years ago

I see. It's confusing since I used the .ktx extension for KTX 2 files as well. I should mention it in the README.

atteneder commented 3 years ago

updated readme