Author Topic: Mapping Atlas Sprites Between HD and SD  (Read 2030 times)

motionsmith

  • Guest
Mapping Atlas Sprites Between HD and SD
« on: March 25, 2013, 04:30:32 PM »
I'm working on getting atlas swapping working to support both HD (retina display) and SD.

My question is, when an atlas is swapped at runtime, how does a widget know which sprite to use if the SD Sprite and the HD Sprite have different names? Is it mapped by the display order in the Atlas Maker window?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Mapping Atlas Sprites Between HD and SD
« Reply #1 on: March 26, 2013, 03:06:23 AM »
It doesn't. They should be named the same.

motionsmith

  • Guest
Re: Mapping Atlas Sprites Between HD and SD
« Reply #2 on: March 26, 2013, 12:27:23 PM »
The Sprite name is taken from the name of the texture, and I don't see a way to customize that. That means both my HD and SD textures have to have the same name? Obviously this isn't possible, unless they're in different folders. So is that then the workflow? Put the SD and HD textures in different folders and make sure they're named the same?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Mapping Atlas Sprites Between HD and SD
« Reply #3 on: April 02, 2013, 10:41:45 AM »
Yup.

hires and lores folder.