Hello Guest

Author Topic: TK2D sometimes says it can't fit stuff in an atlas when it obviously can (2.10)  (Read 3808 times)

JFBillingsley

  • Newbie
  • *
  • Posts: 18
    • View Profile
This isn't a huge deal, just a minor annoyance ;)

For instance, I set the max atlas size to 1024 and it says it can't pack everything into the atlas. I set the max atlas size to 2048 and it works fine... and spits out an atlas that's 1024x1024. So obviously it CAN fit everything, but maybe the check for this is/isn't taking something into account when it should/shouldn't?

I've noticed sometimes the padding on sprites can keep it from fitting them into the atlas, even when the atlas's texture mode is set to clamp (so there's no padding needed on the edge). Maybe this has something to do with it?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
I'll investigate it - do you happen to have a configuration of sprite sizes that triggers this? Will really help :)
The edge padding at atlas edges is a known issue which will be sorted in a future version.

JFBillingsley

  • Newbie
  • *
  • Posts: 18
    • View Profile
Sorry about this... been a bit busy with development :P I'll give a testcase if/when I come across it again!