PVRTC data size question

This topic contains 4 replies, has 3 voices, and was last updated by  RobMarr 8 years, 9 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #29683

    RobMarr
    Member

    Hi, I was wondering why when you call the getDataSize function in the PVRTexLib API, the data size for most textures is exactly 25% higher than you would expect for a texture of that size, even for uncompressed non-PVRTC formats. Is there a way I can get the raw pixel data, and the correct size out of this library without writing the object to disk?

    Thanks,

    Robert Marr

    #32685

    One mipmap would be an extra 25%…is that it?

    #32686

    RobMarr
    Member

    Yes, I certainly could be misinterpreting the input value – putting 1 where there should be a zero.  I’ll try it tomorrow, thanks!

    #32687

    Gordon
    Moderator

    Putting 1 in for the MIP-map level count would certainly have the result suggested. The value for MIP-map level is designed to reflect the convention in OpenGL.

    If you have further problems please post again.

    #32688

    RobMarr
    Member

    This was indeed the problem.  User error.  :-  The sizes are now correct.  Now I just need to figure out why my textures look like bad wallpaper.

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.