Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Remove weird features near the origin from BrownianNoise #4288

Merged
merged 1 commit into from
Nov 28, 2020

Conversation

4Denthusiast
Copy link
Contributor

BrownianNoise works by adding several scaled copies of the same base noise function together. Generally this works well, but it can lead to weird features at the origin, where all of the copies are aligned (the value at the origin in always 0, and it tends to have a very large gradient there). This PR fixes that, by shifting each of the copies by random amounts relative to each other. This has the effect that the spawn point is no longer always on a biome boundary and surrounded by cliffs.

I've gotten so used to the usual surrounded-by-cliffs style of spawn plateau that I don't usually notice how weird it is, but when I tested this PR, this is the spawn plateau I got:
flatSpawnArea

@jdrueckert jdrueckert changed the title Remove weird features near the origin from BrownianNoise feat: Remove weird features near the origin from BrownianNoise Nov 28, 2020
@jdrueckert jdrueckert merged commit 1d877ea into develop Nov 28, 2020
@jdrueckert jdrueckert deleted the fix/brownianWeirdOrigin branch November 28, 2020 23:40
@Cervator Cervator added this to the v4.1.0 milestone Nov 29, 2020
@Cervator Cervator added the Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content label Nov 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Gameplay Content Requests, Issues and Changes targeting gameplay mechanics and content
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants