Skip to content

Use signed integers for interpolation in marching squares algorithm#7814

Merged
StephenCWills merged 1 commit intodiasurgical:masterfrom
StephenCWills:fix-marching-squares-interpolation
Mar 7, 2025
Merged

Use signed integers for interpolation in marching squares algorithm#7814
StephenCWills merged 1 commit intodiasurgical:masterfrom
StephenCWills:fix-marching-squares-interpolation

Conversation

@StephenCWills
Copy link
Copy Markdown
Member

Fixes aberrations in the light data around the saddle points in cases 5 and 10 of the marching squares algorithm. You can see it most clearly by casting Flame Wave, where the following visual effect will flicker onto the screen.

image

And in this image, you can see the dLight data that causes it. The light data goes a bit crazy around the saddle points (the space between tiles with with values 0 east/west and 5 north/south).

image

@StephenCWills StephenCWills merged commit e06d88a into diasurgical:master Mar 7, 2025
23 checks passed
@StephenCWills StephenCWills deleted the fix-marching-squares-interpolation branch March 7, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants