Jump to content

Possible bug with atlas?


Recommended Posts

I noticed an atlas was showing an extra pixel below but the json file seems correct. Is this a bug or am I missing something? I have attached examples, so it's clear what I am talking about.

	"filename": "potter.png",
	"frame": {"x":0,"y":0,"w":60,"h":27},
	"rotated": false,
	"trimmed": false,
	"spriteSourceSize": {"x":0,"y":0,"w":60,"h":27},
	"sourceSize": {"w":60,"h":27}





There's an older post where someone reported a similar issue. Maybe padding is a workaround, I will try that.

Link to comment
Share on other sites

This is a common issue with texture atlases (in all game frameworks, not just Phaser) where pixels from other frames in the atlas bleed through, because they're packed too tightly, and the bilinear filtering samples other pixels along with the actual frame you want. Texture Packer, and apps like it, have padding and border features built-in to mitigate it.

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.

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.


  • Recently Browsing   0 members

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