Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

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:
    44
    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,864
    Reading pixels from compressed texture formats is not supported.