Author Topic: TexCoords in 3.x  (Read 4600 times)

yarbsea

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
TexCoords in 3.x
« on: December 14, 2013, 02:21:00 PM »
Does the functionality from provisos versions with regards to UIAtlas and TexCoords appear in a different way in 3.X or is it removed? I'm trying to provide a simple SD/HD atlas switching, but simply reducing the HD atlas size from 2048 to 1024, but can't seem to figure this out….so maybe there is a different answer? Atlas switching works perfect, but my problem is that how is there any size difference between two atlas of the same size (i.e. both SD and HD are 2048, and i don't know how to make one smaller and still 'work').

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TexCoords in 3.x
« Reply #1 on: December 14, 2013, 02:40:48 PM »
TexCoord feature was removed back in 3.0.0. I suggest you create two different atlases, not shrink one texture. Simply shrinking a texture won't give you good results and there will be bleeding on the edges of sprites.

yarbsea

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 7
    • View Profile
Re: TexCoords in 3.x
« Reply #2 on: December 14, 2013, 02:44:43 PM »
Sure, I have two atlas. But both are 2048x2048..so it's the same size…Don't i need to provide smaller atlas, like 1024x1024 for SD? But I can't figure out how to work with two atlas of different sizes...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: TexCoords in 3.x
« Reply #3 on: December 14, 2013, 07:17:32 PM »
Two folders, both contain the same textures (same names). Textures in one are half the size of those in the other. Create one atlas from one folder, another atlas from the other folder.