[v2-2] PixelFormatGpuUtils PFG_ETC2_RGB8_UNORM Topic is solved

Design / architecture / roadmap discussions related to future of Ogre3D (version 2.0 and above)
Post Reply
dermont
Orc Shaman
Posts: 768
Joined: Thu Dec 09, 2004 2:51 am
x 8

[v2-2] PixelFormatGpuUtils PFG_ETC2_RGB8_UNORM

Post by dermont » Thu Sep 13, 2018 11:38 am

Ogre::PixelFormatGpu::PFG_ETC2_RGB8_UNORM appears to be missing in Ogre::PixelFormatGpuUtils::getCompressedBlockSize and Ogre::PixelFormatGpuUtils::getSizeBytes resulting in either an assert or Invalid compressed pixel format.
0 x

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 3771
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 131
Contact:

Re: [v2-2] PixelFormatGpuUtils PFG_ETC2_RGB8_UNORM

Post by dark_sylinc » Thu Sep 13, 2018 11:57 pm

Fixed

I do not know how is it that you can do such thorough validation of relatively obscure texture formats... but I like it :)
0 x

dermont
Orc Shaman
Posts: 768
Joined: Thu Dec 09, 2004 2:51 am
x 8

Re: [v2-2] PixelFormatGpuUtils PFG_ETC2_RGB8_UNORM

Post by dermont » Fri Sep 14, 2018 2:34 am

dark_sylinc wrote:
Thu Sep 13, 2018 11:57 pm
Fixed

I do not know how is it that you can do such thorough validation ....
Thanks, more luck than thorough validation, found this when iterating over pixels formats to add to a QTreeWidget item in python.

Code: Select all

        for key in ogre.PixelFormatGpu.values.keys():
            pixFormat = ogre.PixelFormatGpu.values[key]
            if (pixFormat!=ogre.PixelFormatGpu.PFG_COUNT):
                print(key, pixFormat.name)
                if ogre.PixelFormatGpuUtils.isCompressed(pixFormat):
                    s = "Compressed Size %d" %(ogre.PixelFormatGpuUtils.getCompressedBlockSize(pixFormat))
                    print(s)
0 x

Post Reply