ddenisyuk / gpu-tex-enc

API and CLI for compressing images using the ASTC, ETC, ETC2, BCn (DXTn), BasisU texture compression standard.
Apache License 2.0
4 stars 2 forks source link

Support for Basis/KTX2 supercompressed textures? #1

Closed reececomo closed 3 months ago

reececomo commented 3 months ago

Heya, love your work (I'm coming from the Pixi AssetPack compressed-textures PR here)

Any thought as to possible support for supercompressed Basis Textures? (re: @pixi/basis) Keen to know if these are especially challenging

ddenisyuk commented 3 months ago

Hi there! Thanks for your kind words. Adding support for Basis Textures seems straightforward, but I won't be able to implement it in the near future. Contributions are welcome, so feel free to submit a PR!

Moreover, I don't think it is reasonable to update the AssetPack PR until the next one is merged: https://github.com/pixijs/assetpack/pull/69

ddenisyuk commented 3 months ago

Check this out: https://github.com/ddenisyuk/gpu-tex-enc/tree/main/packages/%40gpu-tex-enc/basis v1.2.4 available in npm

reececomo commented 3 months ago

You are a legend, thanks @ddenisyuk! I've got a couple custom plugins for assetpack so I'll be on the current "legacy" version for the foreseeable future anyway 😎