Author Topic: PVRTC non-square atlases are broken  (Read 4148 times)

kindex

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
PVRTC non-square atlases are broken
« on: February 04, 2014, 11:35:08 AM »
I have some non square atlases. One of the Android builds uses PVRTC texture compression.

The problem is that PVRTC is not supporting non-square textures, and such textures are scaled up to fill square.

As the result atlas is broken.

Temporary solution is manually change format to RGBA before every build and change back after build. Maybe NGUI can automatically detect such problem at runtime and fix atlas?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: PVRTC non-square atlases are broken
« Reply #1 on: February 04, 2014, 05:19:11 PM »
Make them square. :)

If you use the custom packer (untick unity packer in the atlas maker), you can force NGUI to make them square by default.