Author Topic: Atlas from already existing image?  (Read 4914 times)

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
Atlas from already existing image?
« on: January 24, 2014, 06:06:04 PM »
I have a few images of decks of cards.  Each one contains 52 cards, joker, and two backs.  All of the images have the cards in the same place.

I'd like to use these in nGUI as an atlas, but I have no idea how to do that since they're already together in one image.  I'd like to be able to swap out the card look easily, like I can do by swapping out the atlas to make HD/SD GUIs.

I know this isn't using nGUI as intended, so any suggestions would be appreciated.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas from already existing image?
« Reply #1 on: January 24, 2014, 10:51:21 PM »
You can import existing atlases, provided they come in a format that NGUI can understand -- that being Texture Packer export. You need the source texture, and the accompanying texture definition file (TXT) that describes where each sprite begins and ends.

Chris_E

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 37
    • View Profile
Re: Atlas from already existing image?
« Reply #2 on: January 24, 2014, 10:53:21 PM »
Sadly this isn't packed... it was just used as a texture for a 3D model.