-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: Add compressed textures support #72
Conversation
…ons runner: "error while loading shared libraries: libomp.so.5: cannot open shared object file: No such file or directory"
hey @ddenisyuk just back from holiday so will review this soon! |
hey guys do you have an example of loading a spritesheet compressed with astc (either inside ktx container or not) in pixi 8?
also it it possible to specify either 4x4 or 12x12 astc pixel format, in implementation from this PR?) default 4x4 is mostly useless because textures takes more space than PNG, and ASTC usually used for mobile where game size is really important |
Hey @norflin321, it's hard to help you without examples, but you can check the test file to see how to load textures: https://github.com/pixijs/pixijs/blob/dev/tests/compressed/CompressedTextures.test.ts. Pixi, by default, expects a specific naming format for compressed textures: {name}.{format}.{extension/container}, like my-texture.astc.ktx. Regarding item # 2, it could be related to a misconfiguration of 'Premultiplied Alpha' and/or 'Colorspace'.
yes, you can define preferable blocksize:
|
hey @Zyie, any updates? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ddenisyuk sorry it took so long to review this
Overall this is a great PR, would it be possible to update the docs for this as well?
compress.mdx
texture-packer.mdx
spine.mdx
The image compression extension has been enhanced with the ability to generate
ASTC
,BC7
, and supercompressedBasis
textures.