Author Topic: Creating HD/SD Atlas from the same sprites  (Read 2392 times)

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Creating HD/SD Atlas from the same sprites
« on: September 21, 2012, 09:07:39 AM »
Hi there !

It's not a question about how do you do to manage HD and SD.

In my project, I have all my HD sprites ready, and my HD atlases too. Now I want to make SD atlases based on the existing sprites. I don't want to manually go and clone the sprites at 50% of their sizes and then recreate the atlases.

Is there an easy way to do this ? For example, can I just take my HD atlas and clone it to 50% in photoshop ?

Thanks,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Creating HD/SD Atlas from the same sprites
« Reply #1 on: September 21, 2012, 09:27:23 AM »
You can, sure. Switch the coordinate system to be texcoords on the atlas first. Downscaling the texture will keep your sprites this way.

A small warning though -- downscaling the texture is not exactly the ideal way to go. Going through your sprites and making 50% versions of them is the proper approach.

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: Creating HD/SD Atlas from the same sprites
« Reply #2 on: September 21, 2012, 09:28:49 AM »
One solution so far, and I didn't see it existed, is to use TexturePacker.

(this is AWESOME that you support it, because we can do a lot more with it when creating atlases).

TexturePacker allow me to save two atlas version (SD & HD) in one export.

nah0y

  • Sr. Member
  • ****
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 430
  • \o/
    • View Profile
Re: Creating HD/SD Atlas from the same sprites
« Reply #3 on: September 21, 2012, 09:49:20 AM »
You can, sure. Switch the coordinate system to be texcoords on the atlas first. Downscaling the texture will keep your sprites this way.

A small warning though -- downscaling the texture is not exactly the ideal way to go. Going through your sprites and making 50% versions of them is the proper approach.

Thanks for the answer,

The problem is that we have a LOT of sprites and it will take forever...
I've tried what you're telling (and it's working), the only problem is that if I change my HQ atlas, I will also have to manually change the SD atlas too...

Also, instead of going through every sprite of my scene, I just create 2 new atlases (HD & SD) and then change the currently used atlas to "Reference" and link to one of the two new atlases.

Thanks ;)
« Last Edit: September 21, 2012, 10:06:36 AM by nah0y »