Comments (7)
As you pointed out, the "Alpha Is Transparency" setting seems to toggle between transparent and black in Unity.
However, it appears that the setting is not available when the astc image is loaded.
Please wait a little while before trying to check via the application in production, and if it is transparent I will close this issue.
from astc-encoder.
A local check would be to decompress the .astc
image back to a .png
with the command line tool (i.e. astcenc -ds ...
). If that's transparent then this is definitely a Unity integration issue.
from astc-encoder.
I don't think this is a compressor problem (or at least, if it was, it no longer reproduces with the latest release). What version of the compressor are you using? Can you share the input texture and the generated output astc file?
Decompressing with the command line seems to give the right result on a transparent PNG I have locally:
./astcenc-avx2 -cs repro.png out.astc 6x6 -medium -yflip
./astcenc-avx2 -ds out.astc out.png
from astc-encoder.
In Unity when you import the texture what is the "Alpha Source" option set to in the import settings? I think that needs to be set to "Input Texture Alpha", with the "Alpha Is Transparency" option ticked.
from astc-encoder.
@solidpixel
Thank you for your reply.
What version of the compressor are you using?
I built astcenc
from source code at main branch so its maybe latest version.
Can you share the input texture and the generated output astc file?
Sorry I can't attach astc file to github comment here.
In Unity when you import the texture what is the "Alpha Source" option set to in the import settings? I think that needs to be set to "Input Texture Alpha", with the "Alpha Is Transparency" option ticked.
When I import astc file to Unity, that setting "Alpha Is Transparency" is not available.
When I import original png, "Alpha Is Transparency" is available.
from astc-encoder.
Solved!
I import the astc image into my application and confirmed that it is transparent without any problems.
In other words, the Unity environment (the way it is shown) was the cause.
Thank you for your supports!!
from astc-encoder.
Great, thanks for confirming. Closing.
from astc-encoder.
Related Issues (20)
- bug checking the ASTCENC_FLG_DECOMPRESS_ONLY flag in astcenc_context_alloc() HOT 2
- Support Windows systems with multiple CPU groups HOT 1
- Completion of error handling HOT 2
- Warnings that become errors on mcst-lcc compiler (-Werror option) HOT 1
- alpha decoding bug when LDR_SRGB is enabled in ASTCENC_PRF_LDR_SRGB profile HOT 18
- Question about bizarre differences between `-ts` vs `-ds` HOT 3
- Compress/decompress progress callback HOT 8
- Crash: Progress Callback not initialized for Single-Threaded alpha-weight-scaling-radius path HOT 1
- Builds for wrong-architecture on M1 macs HOT 3
- How to encode RGB+A with dual weight planes? HOT 4
- How to minimize heap/stack memory usage of multiple contexts on mobile platform? HOT 4
- Emscripten SAFE_HEAP reports unaligned access in compute_quantized_weights_for_decimation. HOT 13
- The png do not support to load HOT 6
- Build fails on i386 with -march=nehalem or newer HOT 6
- 4.8.0 has "possible loss of data warning" in astcenc_find_best_partitioning.cpp HOT 2
- Despite ASTCENC_INVARIANCE ON, results on M2/Neon (macOS, clang) differ from X86_64/AVX2 (Ubuntu, GCC) HOT 4
- KTX2 format support for output textures HOT 3
- ASTC encoder output is resulting in a flipped image. HOT 5
- Using -pp-premultiply with sRGB compression gives a brigher than expected output HOT 16
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 astc-encoder.