Jump to content

tiling sprite with texture atlas always produces a border - how to get rid of?


valueerror
 Share

Recommended Posts

This is likely due to there being some transparent pixels at the edges of your tiled image. You'll need to open it in an editing program and ensure the edges are sharp and clean, and then you may want to add a bit of extra padding to the images so the pixels repeat at the edges to ensure that you get no gaps when scaling and/or moving them. TexturePacker has the option to do this for you.

Link to comment
Share on other sites

puhh... i tried it with different images and different sizes ..   it is really confusing..  now it is working in chromium on my desktoppc  but not in firefox (there you see the borders) and it is not working on my tablet (chrome) too..  if i load the same image without the atlas it works as expected..

 

i tried the option "extrude" in texturepacker   (set it to 1 px) and now it works everywhere..  thx..  (but this function is not supported by spritesheetpacker :( which would be free)

Link to comment
Share on other sites

the feature is called "extrude"   in texturepacker.. it seems to add 1px of collor around my tilesprite or something similar..  the problem is..  without it i can not use a tilesprite from the atlas.. 

 

is there a way to get my sprites to work without this texturepacker feature?  can i prepare my sprites in some way?   they are absolutely perfect .. no transparent pixels at the borders .. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...