Does cesium for unreal(UE5.3.2) support ktx2 texture format? What’s format in GPU after Origin ktx2 texure passed to GPU?
Does cesium for unreal(UE5.3.2) support ktx2 texture format?
Yes, via the KHR_texture_basisu extension.
What’s format in GPU after Origin ktx2 texure passed to GPU?
It depends on the capabilities of the GPU at runtime.
The supported compressed texture formats are queries from Unreal Engine and passed to cesium-native here:
And cesium-native determines which one to use here:
Thank you for your reply!
Hello, Kevin. When loaded the tileset with ktx2 texture format, I got this error. What changes should i make to Source Code to solve the problem. I really need your help.
in UE5.2.1 with Cesium for Unreal2.11.0.
The error seems to originate from here. There are many different things done in that function, with several re-assignments to the errorCode
but trying to match the
{
from line 84 with the }
in line 255, I think that this can happen when there is a KTX image that does not need transcoding. To be verified.
Thanks for your reply! It helped me a lot, I will look into this part of the code and my ktx image type. May need your further help.
A first hint might be derived from setting the log level to ‘trace’, and see whether the message
“Transcode KTXv2”
is printed from this line.
My team use the NVIDIA Texture Tool converting PNG image to Ktx2 image. Could it be due to the problem with the compression format settings?
It might be that there are some pieces of information that could bring some insight. For example, if you could provide
- the exact settings that you are using for encoding the texture or
- the output of running
ktxinfo
on one of the textures or - maybe the texture itself
then this could help to narrow down the search space.
You are right. the png texture convert to Ktx without compressed. Thanks a lot. There’s another problem. Which type of compression works better in Cesium for Unreal?