Jump to content

Load texture directly from ArrayBuffer in pixi-compressed-textures plugin


Recommended Posts

I have finally managed to get nice quality compressed textures for all platforms with relatively small file size, and they all work with the plugin pixi-compressed-textures plugin.

However, the framework I use is loading assets automatically and provides ArrayBuffer already, so it would be nice to just create the compressed texture from the ArrayBuffer directly (I do know the file format of the texture ArrayBuffer upfront).

(I'm aware that there is a new code for compressed textures in the latest pixi, but no matter what I do I get wrong format error or range errors, and the PIXI.INTERNAL_FORMATS doesn't have ASTC in its list, which I need, and works automatically and perfect with the plugin)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...