Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-3770

Compressed textures doesn't work on target device.

    XMLWordPrintable

Details

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              anmaatta Antti Määttä
              evgeniy_prikazchikov Evgeniy Prikazchikov
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes