You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OptFine will try to scale up item/block icons whose size is not a multiple of 16, in this case, GT logos are 17x, and got scaled up to 80x, which caused it to look really blurred.
This PR fixes this in a brute-force approach: scale these two icons 16 times larger (17 pix -> 272 pix)
When I added the logo item I contemplated whether to make the texture 17x or 32x, I chose 17x at the end because I didn't think there were any consequences apart from forge printing two warning statements. Oh well.
Using 32x texture and setting XY scale of the logo model json to 2 might be a better approach. Probably needs to fiddle a bit around offsets. (Spawning the logo item in your inventory makes it easier to see the offset fyi)
When I added the logo item I contemplated whether to make the texture 17x or 32x, I chose 17x at the end because I didn't think there were any consequences apart from forge printing two warning statements. Oh well.
Using 32x texture and setting XY scale of the logo model json to 2 might be a better approach. Probably needs to fiddle a bit around offsets. (Spawning the logo item in your inventory makes it easier to see the offset fyi)
MCTian-mi
changed the title
Fix optifine blurring GT creative tab icons by scaling logos by 16x
Fix optifine blurring GT creative tab icons by scaling logos to 32x
Aug 23, 2025
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
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.
What
OptFine will try to scale up item/block icons whose size is not a multiple of 16, in this case, GT logos are 17x, and got scaled up to 80x, which caused it to look really blurred.
This PR fixes this in a brute-force approach: scale these two icons 16 times larger (17 pix -> 272 pix)
Before:


After: