The Dink Network

Reply to Dink HD - Good Shadows Patch

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 14th 2017, 12:36 AM
custom_king.png
redink1
King He/Him United States bloop
A mother ducking wizard 
One thing that's annoyed me about Dink for about 19 years is the checkerboard shadow pattern.

When shadows overlap, it results in 'flickering' shadows where an entire region is either black or checkerboard:





DinkHD has support for Pic Smoothing, which is nice, but there is still a faint checkboard pattern depending on where the pixel rounding (?) occurs, and it makes everything else blurry:





I thought there was a better way. So, I made a small patch to the DinkHD source code to detect the checkboard shadow pattern, and when it is detected, convert it to a nice anti-aliased alpha-channel shadow.





(These screenshots are with Pic Smoothing = Off!)

It does end up converting all SURFACE_PALETTE_8BIT textures to SURFACE_RGBA, even those without shadows. It could probably be optimized / improved.

Apply this patch to svn://rtsoft.com/rtsvn/proton/shared/Renderer ; rev 1477

Does this seem interesting to anyone else?