Comments (6)
The .basis format supports alpha channels already, but only a few transcoders can handle outputting alpha: ETC2 EAC and BC3, and BC5. The new ASTC transcoder (which will be released on the next milestone) also supports alpha channels. It also has optimizations for L and LA blocks (for XY normal maps) The next milestone also has transcoders for BC7 alpha (using mode 4) and PVRTC1 4bpp alpha (using a new transcoder).
from basis_universal.
Alpha is supported by Basis, but not by every transcode target. It's explained in detail in (this section of the repo readme)[https://github.com/BinomialLLC/basis_universal#gpu-texture-format-support-details], but the short version is that ETC1, BC1, BC7, and PVRTC1 don't support alpha channels with Basis. (Yet. Some of them may support it in the future.) If those are the only formats available to your platform, you'll need to decode the alpha channel as a separate greyscale image (with the cDecodeFlagsTranscodeAlphaDataToOpaqueFormats
flag) and sample it separately in your shaders.
from basis_universal.
Just wanted to let y'all know that alpha support will be added for PVRTC and BC7 in the next release, which should be coming out in October if testing goes as planned. No contributions needed (it'd be too many cooks in the kitchen at this point, since it's almost done)-- look forward to release!
from basis_universal.
Thanks @toji and @sehurlburt for the heads up.
from basis_universal.
I hope that the alpha support will be at least of beta quality ;)
from basis_universal.
As the system already supports alpha, I'm closing this bug. The next milestone (due in a few weeks) will have more transcoders supporting alpha.
from basis_universal.
Related Issues (20)
- How to encode HDR format resource? HOT 2
- Webssembly version does not support jpg format HOT 1
- rename HOT 2
- Selecting which transcoders to use
- Is it possible ETC1S without lossy compression ?
- RuntimeError when encoding to UASTC with WASM HOT 1
- Transcode failure on iOS 17 HOT 3
- shrinking wasm for glTF extension support HOT 1
- build_emscripen.sh script error
- Error when I cross compile for arm64 under Windows HOT 2
- Does this project with WebGPU (web)? HOT 1
- Add prefix to cmake options
- losinglena.com domain expired HOT 1
- Setup documentation to remove etc1 global codebook selector
- Compile error in cppspmd_sse.h with C++23 HOT 1
- Remove reference to etc1_global_selector_codebook from transcoder wiki page HOT 2
- Balck Textures on android HOT 11
- Question about conversion from PNG to KTX2 and BC1-7 HOT 1
- build variations from number of cores HOT 1
- ETC1S Texture Video Specification (wiki page) says flip bit = 1 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basis_universal.