Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt 3D Studio 2.4
-
None
Description
Hello,
During the testing of compression textures (ETC2), we found that it doesn't work at all on the target device. For each ktx texture 3D Studio logger print message like:
5159 2019/07/17 11:33:57.086126 67.9757 248 DD HCLU DFLT 3376189440 log warn verbose 1 [] Image Gauges/maps/carb_normal_dir_left.ktx is DXT format which is unsupported by the graphics subsystem, decompressing in CPU
We did some track down of this message and found the wrong decision in file Qt3DSRenderBufferManager.cpp Line 478
bool isDXT = NVRenderTextureFormats::isCompressedTextureFormat(inLoadedImage.format);
bool requiresDecompression = (supportsDXT == false && isDXT) || false;
isCompressedTextureFormat returns true because ETC is also a compression format.
requiresDecompression is also becomes true
And after this, it tries to do decompression instead of just load the texture data into the texture buffer.
Attachments
Issue Links
- relates to
-
QT3DS-3308 Support customer project X
- In Progress