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

Disable fog tile culling with low horizon-blend #10679

Merged
merged 1 commit into from
May 18, 2021

Conversation

rreusser
Copy link
Contributor

@rreusser rreusser commented May 12, 2021

See: #10677

Addresses sky showing through culled high elevation terrain by simply disabling fog tile culling when horizon-blend < 0.03.

I don't necessarily think I caught the worst spot in the world, so 0.03 is a little forgiving. I think as little as 0.02 might be safe but probably cuts it a little close.

Original:

hb-0-big copy

Threshold < 0.01:

hb-01 copy

Threshold < 0.02:

hb-02 copy

Threshold < 0.03:

hb-03 copy

The look of the overall map with 0.03:

hb-03-big copy

Here's the worst case I could find where it's not fully patched over by the 0.03 threshold, but it's so slight that I think it might be permissible:

Screen Shot 2021-05-12 at 2 22 56 PM copy

If not we could simply bump it up to 0.04.

I mainly just want to be sure that we don't sacrifice useful tile culling for a range of parameters people are likely to spend a lot of time in, but I think this is probably acceptable.

@rreusser rreusser requested a review from karimnaaji May 17, 2021 17:10
Copy link
Contributor

@karimnaaji karimnaaji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also cherry-pick that in main?

@karimnaaji karimnaaji merged commit 2907954 into release-v2.3.0 May 18, 2021
@karimnaaji karimnaaji deleted the ricky/fix-horizon-blend-culling branch May 18, 2021 23:37
karimnaaji pushed a commit that referenced this pull request Jun 1, 2021
* Implement dual ESM + CJS compatibility in style-spec (#10718)

* Implement dual ESM + CJS compatibility in style-spec

* Try to catch additional references to non-cjs files

* Remove accidentally-committed files

* Revert main entry point

* Revert module field as well

* Update sources and markers while fog transitioning (#10691)

* Update sources while fog transitioning

* Apply fix to markers

* Remove unnecessary comment

* Include dist/package.json in npm published files (#10668)

* Disable fog tile culling with low horizon-blend (#10679)

* Cherry-pick changelogs
SnailBones pushed a commit to SnailBones/mapbox-gl-js that referenced this pull request Jul 15, 2021
* Implement dual ESM + CJS compatibility in style-spec (mapbox#10718)

* Implement dual ESM + CJS compatibility in style-spec

* Try to catch additional references to non-cjs files

* Remove accidentally-committed files

* Revert main entry point

* Revert module field as well

* Update sources and markers while fog transitioning (mapbox#10691)

* Update sources while fog transitioning

* Apply fix to markers

* Remove unnecessary comment

* Include dist/package.json in npm published files (mapbox#10668)

* Disable fog tile culling with low horizon-blend (mapbox#10679)

* Cherry-pick changelogs
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