Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTexture atlas for glyphs using new heuristic texture packer #1115
Conversation
bvssvni
added some commits
May 21, 2019
This comment has been minimized.
This comment has been minimized.
|
Merging. |
bvssvni
merged commit 4b4e797
into
PistonDevelopers:master
May 23, 2019
1 check passed
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
bvssvni
deleted the
bvssvni:glyph_texture
branch
May 23, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
bvssvni commentedMay 21, 2019
•
edited
This PR adds a new heuristic texture packer which works pretty decently without backtracking or future knowledge of tiles (skyline). The algorithm is
O(N^2)for packing a new tile whereNis the number of points in the skyline. Since this is usually a low number, the packing is pretty fast. It means it can e.g. pack glyphs into textures with hard performance guarantees that there will be no re-packing later.Characterwith fields for sub-rectangles