[Enhancement] Dithered tone mapping #33

Closed
opened 2025-04-04 09:32:20 +00:00 by TriVoxel · 2 comments

Description

The current tone mapping looks pretty bad. It is strictly sRGB and does not do a good job of blending. This leads to a lot of noticeable color banding, especially on low contrast gradients such as single-color surfaces with lighting. We need to dither these areas to blend between colors more smoothly. To accomplish this, we may want to render in a better color space like AGX, and tone map to sRGB with dithering to get the full color spectrum between these gradients.

dither_deez_nuts.png

Zoom in on this picture and look at the shades of gray and red. You can see distinct bands of color. This would be fixed by dithering. It can be even worse in some cases and is very noticeable, especially in low poly and simpler games. We lose so much fidelity this way. Games will look 100x better once we implement this!

## Description The current tone mapping looks pretty bad. It is strictly sRGB and does not do a good job of blending. This leads to a lot of noticeable color banding, especially on low contrast gradients such as single-color surfaces with lighting. We need to dither these areas to blend between colors more smoothly. To accomplish this, we may want to render in a better color space like AGX, and tone map to sRGB with dithering to get the full color spectrum between these gradients. ![dither_deez_nuts.png](/attachments/ed406e17-2036-470e-8e85-7f1803940068) Zoom in on this picture and look at the shades of gray and red. You can see distinct bands of color. This would be fixed by dithering. It can be even worse in some cases and is very noticeable, especially in low poly and simpler games. We lose so much fidelity this way. Games will look 100x better once we implement this!
Owner
Boo ya! Added in: https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/2bc2ab43a1c3994fd58dfa25e7db57cdd8551466 https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/4805dd06a78aa10057caef65566f9b8fffe68f11 https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/2c5c8d0e4f6ce2b0ad75ba098e7367796c9ca2fc https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/8765e894f5fea81dd84f16fb84a1efc585eea03c https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/c3435b9533581037c7812239dec6dca2dec21ae0 https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/30e5acf9bf358f33291eed1053fd84b9187f5ce4
Author
> Boo ya! Added in: > https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/2bc2ab43a1c3994fd58dfa25e7db57cdd8551466 > https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/4805dd06a78aa10057caef65566f9b8fffe68f11 > https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/2c5c8d0e4f6ce2b0ad75ba098e7367796c9ca2fc > https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/8765e894f5fea81dd84f16fb84a1efc585eea03c > https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/c3435b9533581037c7812239dec6dca2dec21ae0 > https://dev.leenkx.com/LeenkxTeam/LNXSDK/commit/30e5acf9bf358f33291eed1053fd84b9187f5ce4 Hells yeah!
Sign in to join this conversation.
No Label
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LeenkxTeam/LNXSDK#33
No description provided.