Author Topic: Atlas is too big and too empty  (Read 1825 times)

bezii

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 19
    • View Profile
Atlas is too big and too empty
« on: February 16, 2014, 06:42:48 PM »
How to cut atlas because it is almost empty i want to save some space and reduce the game size


2cat

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Atlas is too big and too empty
« Reply #1 on: February 17, 2014, 05:49:27 AM »
I'm experiencing this as well. After removing an image that was too large that was accidentally added, my atlas doesn't scale back to a smaller sized image while that would be possible.

On 3.0.9 f7.

Agent_007

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 5
  • Posts: 27
    • View Profile
Re: Atlas is too big and too empty
« Reply #2 on: February 17, 2014, 06:28:27 AM »
bezii:
Do you need a square texture? And do you really need that long purple line in there?

With square textures, your cannot make it any smaller, since usable area would be one quarter of the current texture. And those component you have in that texture won't fit to 1024x1024. That is problematic specially with iOS since PVRTC only accepts square textures.

And since the atlas generation doesn't do rotation, you should always avoid putting textures in it which have like 2x756 pixels dimensions.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas is too big and too empty
« Reply #3 on: February 17, 2014, 12:00:26 PM »
Long, thin objects are treated as square by Unity's packing algorithm, and are notoriously bad for packing.

So if you have a 2x800 line in there, it's going to be treated as 800x800, pretty much.

Eliminate long & narrow sprites. Use sliced sprites.