Search Unity

GetPixels errors with PVRTC compression enabled

Discussion in 'iOS and tvOS' started by _Valek_, Nov 8, 2016.

  1. _Valek_

    _Valek_

    Joined:
    Oct 4, 2016
    Posts:
    3
    Hello!

    When I try to get pixel data from spritesheet with PVRTC compression on IOS by GetPixels I see the following errors:
    Invalid texture format: 33
    Image invalid format!
    Unsupported texture format - needs to be ARGB32, RGBA32, BGRA32, RGB24, Alpha8, RGBAFloat, RGBAHalf or one of supported compressed formats.
    UnityEngine.Texture2D:GetPixels(Int32, Int32, Int32, Int32)

    Although it works with RGBA Compressed ETC2.
    Texture is 2048x2048, read/write is enabled.
    There`s nothing about it in documentation. How can I deal with it?

    Thanks.
     
    Last edited: Nov 8, 2016
  2. _Valek_

    _Valek_

    Joined:
    Oct 4, 2016
    Posts:
    3
  3. Biggix

    Biggix

    Joined:
    Dec 8, 2014
    Posts:
    40
    This is still happening in Unity 5.5.1.f3. When is this going to be fixed? Any word from the team?
     
  4. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,855
    Reading pixels from compressed texture formats is not supported.
     
unityunity