Kodi Community Forum
textures change after texturepacker conversion... - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: textures change after texturepacker conversion... (/showthread.php?tid=131507)



textures change after texturepacker conversion... - liquidskin76 - 2012-05-14

Hi guys,

After running my textures through texturepacker, some appear differently. Here's an example (scroll bar)...

before...

Image

after...

Image

Any idea why this would happen. That particular texture is just standard photoshop RGB 8bit.

Cheers


RE: textures change after texturepacker conversion... - `Black - 2012-05-14

This happens when the texture is very small... you can try adding border="1" to the texture which mostly helps or you have to use a slightly bigger texture.


RE: textures change after texturepacker conversion... - butchabay - 2012-05-14

Have a similar problem with some packed textures.
Another strange behaviour i've noticed, when i download my modded skin fusion migma v2 from my repository it shows fine, but if i download the same version via xbmc passion repo i have similar effects you've posted in your screenshots.

Will post some screenshots when i get home this evening.

Hope really someone comes up and can explain why this happens Smile


Edit: Just saw black's post.

Sadly it's not only happening with small textures, i have a bigger background showing different before and after packing the textures.






RE: textures change after texturepacker conversion... - liquidskin76 - 2012-05-14

(2012-05-14, 13:26)`Black Wrote: This happens when the texture is very small... you can try adding border="1" to the texture which mostly helps or you have to use a slightly bigger texture.

Hey Black,

The two textures i'm seeing this with are both 6x6 pixels, then stretched using code dimensions, so that may well be the problem. I'll try increasing there size.

Cheers


RE: textures change after texturepacker conversion... - pecinko - 2012-05-14

You should be fine with textures 4x4 or bigger.

My guess is that you are using 1px padding around textures and this does not work well with progress/scroll bars if you do not force border.


RE: textures change after texturepacker conversion... - Hitcher - 2012-05-14

As 'black said, just add border="1" to your smaller textures.

Code:
<texturesliderbarfocus border="1">common/scroll_bar_focus.png</texturesliderbarfocus>

Image


RE: textures change after texturepacker conversion... - liquidskin76 - 2012-05-14

Yeah, the 1 pixel border sorted. Cheers guys.