RGBA something wrong #1024
-
|
This is png with alpha (RGBA) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
|
What was the exact command line you used? What version of the KTX software? What is the VkFormat of the
|
Beta Was this translation helpful? Give feedback.
-
|
I clone github with new version and run commandline here by chatgpt : |
Beta Was this translation helpful? Give feedback.
-
|
Website I try convert : https://www.3dpea.com/en/convert/PNG-to-KTX2 and here is code, i use c# format for ktx2 : START CODE =================================================== public static byte[]? ConvertToKTX2(byte[] imageData, int width, int height) } END CODE =================================================== Please check for me! Thanks so much @@! |
Beta Was this translation helpful? Give feedback.
-
|
It looks to me as though the alpha channel values are all 1.0. In such cases the Basis Universal encoder, which you are invoking via If you make sure there is at least one alpha value < 1.0 then the channel will not be removed. The |
Beta Was this translation helpful? Give feedback.
-
|
Sorry for the delay in my reply. Apple Mail has stopped flagging unread messages in my GitHub mailbox for some reason and I only saw your message today. In the
The color gradient you can see is from the vertex colors of the quad which is being textured. If you aren't seeing the alpha channel either your app is transcoding it to a format without alpha or has some other display problem. As for
Notice this has a grey background between the wires. The 3dpea website appears to have written an alpha channel where every texel has the value 1.0 so you are seeing the background of the image between the wires. For sure there are no transparent texels in this image. Because of invalidity I mentioned, I cannot use our About the invalidity, the image is float format (R32G32B32A32) which is fine but the DFD has many incorrect values in each of the 4 samples (in this case a sample corresponds to a channel or component). Here is the output from Please report this to www.3dpea.com as well as reporting their failure to preserve the alpha data. The |
Beta Was this translation helpful? Give feedback.





Sorry for the delay in my reply. Apple Mail has stopped flagging unread messages in my GitHub mailbox for some reason and I only saw your message today.
In the
example.zipyou posted,use KTX-Software.ktx2, which is in a UASTC format, actually does have an alpha channel as you can see in the image below:The color gradient you can see is from the vertex colors of the quad which is being textured. If you aren't seeing the alpha channel either your app is transcoding it to a format without alpha or has some other display problem.
As for
use website 3dpea.ktx2that file is an invalid KTX v2 file that is nevertheless accepted by libktx. More on the invalidity later. Here is the rendering fro…