Hello Guest

Author Topic: Correct texture import settings  (Read 4200 times)

tomplayniac

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Correct texture import settings
« on: December 08, 2014, 12:06:43 pm »
Hey! We're nearing the end of our project that uses tk2d heavily (thanks!), and we're seeing some massive memory footprints, almost certainly due to the large atlases we have. In the majority of cases, the atlases contain textures that are much larger than are ever needed (things like loading screens, large character sprites for cut scenes, etc), and so the obvious solution was to head over to the Unity Texture Import window and set the compressing and max texture size a bit lower - but it seems that tk2d changes the sizes back to 4096*4096 automatically (I can understand that compression wouldn't affect the atlas). Is there any way to manually lower the resolution of our images before they get atlased in Unity, or do we need to edit the textures outside the program? Alternatively, is it recommended that for larger textures, we eschew tk2d entirely and do things the Unity way? It'd be a shame to lose the tk2d features, and have to recode a few things, but we were cutting file sizes by up to 10x when we started testing this method.
Cheers!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Correct texture import settings
« Reply #1 on: December 09, 2014, 10:24:08 am »
You'd have to edit the textures outside unity, but once you rescale the textures outside unity, you can set the sprite scale in sprite collection editor to compensate. Eg. if you halve the texture resolution, you can double the sprite scale in tk2d sprite collection editor and all existing sprites will remain the same size.

Also, you can set atlas compression in the tk2d sprite collection settings.

tomplayniac

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Correct texture import settings
« Reply #2 on: December 10, 2014, 12:23:39 pm »
Thanks, thats what we've now done. Its a shame there aren't any more options when it comes to compression and resizing, its the Unity way to import raw files, and compress them in-engine!