Author Topic: Resize Sliced Sprite for SD/HD atlas  (Read 1793 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Resize Sliced Sprite for SD/HD atlas
« on: October 17, 2013, 06:11:02 AM »
This is being a pain in the ass, all the Sliced Sprites I use in the game it looks like shit when I changed to the SD version. This means that doesn't keep the aspect ratio
I was just keeping the same sliced asset in both atlases to avoid issues, but are too big for SD version.
What I was doing it's resize the image to the half and add the pixels in the middle to keep it the same way.

So, for example in the image attached I have an image with 2 pixels in the middle to repeat, when I resized it changed to 1 px and I added later the other pixel to keep the sliced, but this is not working, the image size just don't work.

Anyone had make this before?  Any help would be appreciate.

Thanks!

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Resize Sliced Sprite for SD/HD atlas
« Reply #1 on: February 26, 2014, 12:42:02 PM »
Any information to how to deal with this issue?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Resize Sliced Sprite for SD/HD atlas
« Reply #2 on: February 26, 2014, 02:37:37 PM »
I'm not sure what I am looking at in those screenshots. Why add pixels to the image? You have a flat center. You can have the border set up so that the left border touches the right border. You don't need to have a space there.

The point of HD/SD sprites is to have HD sprite have exactly twice the dimensions of the SD sprite. With the HD atlas also having double the pixel density (half the pixel size) of the SD atlas, the final calculated dimensions should match exactly.