Closed mahfouzhseineweev closed 8 months ago
That exact command is working for me in the 4.3.0 beta I am currently preparing and will soon release. Because of the --target_type
it might not work in v4.3.0-alpha3 or v4.2.1. v4.0 is now very old. Please try a more recent version of toktx.
Note that the --target_type
serves no purpose here. The ETC1S encoder will strip an all-1 alpha channel to avoid doubling the size of the texture. Therefore asking toktx to add an alpha channel just wastes cpu cycles.
Here is an image showing all the mip levels and the lights are clearly visible.
@MarkCallow I tried without the --target_type but it didn't work. So it seems like the v4.3.0 beta has the fix for it. I currently have the v4.3.0-alpha3 installed.
When is the v4.3.0 beta expected to be release ?
When is the v4.3.0 beta expected to be release ?
Within a few days. I can't give a precise time frame because I am dependent on third parties for some things.
4.3.0-beta1 has been released. I can't reproduce this problem in it. If it still happens for you, please reopen.
I still have the same problem, installed the 4.3.0-beta1 version from here
I am suspecting this to be a versioning problem somewhere, I am running the software on the following specifications:
@MarkCallow Please let me know if there are any additional details that I have to share with you so I can help to reproduce the problem
Please provide the KTX v2 file you have created.
I am running Ventura 13.6.3, cmake 3.26.3 and Xcode 15.1 though I was running XCode 14 when I was testing this before.
@MarkCallow Here is the last one I created, if possible please to send me the one you created that has no problem. I also suggest that you try the conversion with the Version 4.3.0-alpha3 of the software which might narrow down the possibilities of the reasons causing this problem
The texture is fine.
There may be an issue with your application. This is an ETC1S/BasisLZ texture so possible you are not transcoding it or are transcoding it to a format not supported on your hardware. It is is not one of these then the texture loaded into WebGL may be incomplete. Look at the spec. for all the reasons a texture can be incomplete which includes, in some cases, being non power-of-two and exceeding the maximum texture size supported by the implementation. This texture is 13,500 x 6,750 pixels.
I have a jpg texture that I am trying to convert using the KTX-Software into a ktx2 file but when I do so using toktx, the result I am getting is a full black texture.
Here are the details I have:
toktx v4.0
Image size: 8.1 MB
Image Dimensions: 13500 × 6750
Image color space: RGB
Image color profile: sRGB
Command used:
toktx --2d --genmipmap --target_type RGBA --t2 --scale 1.0 --encode etc1s --clevel 0 --qlevel 255 --lower_left_maps_to_s0t0 nightTexture.ktx2 nightTexture.jpg
Image to convert:
I am testing the ktx2 result here: https://sandbox.babylonjs.com/
My intension is to use the ktx2 file on three js using the KTX2Loader
Note that I have used the exact same command options on other textures and they were created with no problem.
Please help me understand and solve the problem I am facing, thank you.