SDF Font generation#1333
Closed
marauder2k7 wants to merge 28 commits intoTorqueGameEngines:developmentfrom
Closed
Conversation
9b8ce10 to
67f0794
Compare
some tweaks and docs added to the shader also removed previous debug alpha check and added a discard
added a debug view to gfxFontRenderBatcher updated font glyph metrics for padding
67f0794 to
709dc72
Compare
most changes made for str width, height and xIncrement.... more to be done.
updates to padding and render logic changed more function calls!
reuse functions that take rounding into account
update file version and push error if its not a match
few missed usages commented out debug image output
cleanup some excess code change a few classes to use precise, mostly tooltips so the box fully encompasses the text
wasnt packing glyphs......
add sheet fixes, wasnt calculating and reseting values...... yeah.. reduced inner loops for the sdf function to speed up generation
fix missing characters in lucida, not converting to f32 was bad....
comment out debug output
change the sdf algo to calc the min middle distance as well increase the intensity to push closer to white apply a gaussian to the sdf after it is generated increase the padding to stop overlap issues.
the sdf method now tweaks the values based on inner or outer distance and sets the min and max accordingly, hopefully making sure 0.5 is the glyph edge.
Contributor
Author
|
I have a better method for doing this, the branch is out of date since the new changes and would make more sense to just use this branch as a reference. Will have a new PR up for doing this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
needs work but the basic groundwork is there