Skip to content

testbed_2d texture atlas builder scene#23074

Merged
alice-i-cecile merged 6 commits into
bevyengine:mainfrom
ickshonpe:testbed-ui-atlas
Feb 24, 2026
Merged

testbed_2d texture atlas builder scene#23074
alice-i-cecile merged 6 commits into
bevyengine:mainfrom
ickshonpe:testbed-ui-atlas

Conversation

@ickshonpe

@ickshonpe ickshonpe commented Feb 20, 2026

Copy link
Copy Markdown
Contributor

Objective

Add a scene displaying the output from TextureAtlasBuilder.

Solution

Add a scene showing the atlases textures and padding and how it affects the sub images when they are drawn.

Testing

cargo run --example testbed_2d -- textureatlasbuilder

@ickshonpe ickshonpe added the A-Rendering Drawing game state to the screen label Feb 20, 2026
@github-project-automation github-project-automation Bot moved this to Needs SME Triage in Rendering Feb 20, 2026
@ickshonpe ickshonpe added C-Examples An addition or correction to our examples C-Testing A change that impacts how we test Bevy or how users test their apps D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Feb 20, 2026
@ickshonpe ickshonpe changed the title Add a texture atlas builder scene to testbed_2d testbed_2d texture atlas builder scene Feb 20, 2026

@kaio-matos kaio-matos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as a newbie can go, LGTM.

Is there any reason for why the bottom left sprites have these different borders from the other ones? Its like the rest of the atlas is "bleeding" out in each square. Sorry if this is obvious.

Image

@ickshonpe

Copy link
Copy Markdown
Contributor Author

Is there any reason for why the bottom left sprites have these different borders from the other ones? Its like the rest of the atlas is "bleeding" out in each square. Sorry if this is obvious.

yep it's called texture bleeding. The colors are blended across the edge of the sprite with neighbouring pixels from the atlas texture.

@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Feb 23, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Feb 24, 2026
Merged via the queue into bevyengine:main with commit b03922d Feb 24, 2026
40 checks passed
@github-project-automation github-project-automation Bot moved this from Needs SME Triage to Done in Rendering Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Rendering Drawing game state to the screen C-Examples An addition or correction to our examples C-Testing A change that impacts how we test Bevy or how users test their apps D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants