This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
Fix layers rendering after fill-extrusion - #15065
Merged
Merged
Conversation
pozdnyakov
reviewed
Jul 8, 2019
| "render-tests/combinations/fill-translucent--fill-extrusion-translucent": "needs investigation", | ||
| "render-tests/combinations/line-translucent--fill-extrusion-translucent": "needs investigation", | ||
| "render-tests/combinations/raster-translucent--fill-extrusion-translucent": "needs investigation", | ||
| "render-tests/combinations/symbol-translucent--fill-extrusion-translucent": "needs investigation", |
Contributor
Author
|
"needs backport" added because of this comment:
|
Member
Concretely this means cherry picking changes to |
pozdnyakov
approved these changes
Jul 9, 2019
tmpsantos
approved these changes
Jul 9, 2019
This fixes following issues: * Fix some false passing combinations/fill-extrusion-translucent--XXXX tests * Fix and enable other, failing but ignored, combinations/fill-extrusion-translucent--XXXX tests * Fix rendering of layers that are on top of fill-extrusion layers state.getProjMatrix(nearClippedProjMatrix, 100) caused that tests with size 64x64 were not rendering fill extrusions: far plane calculated as 96.9 and near plane set to 100 was the cause. near plane is changed from hardcoded 100 to depend on state.getCameraToCenterDistance() - producing similar value but one that follows max zoom. This caused that e.g. combinations/fill-extrusion-translucent--fill-opaque was falsely passing as only fill-opaque layer got rendered. combinations/fill-extrusion-translucent--XXXX tests expose regression #14844 (comment) in #14844, #14779. Fix (opaquePassCutoff, is3D) is ported from mapbox/mapbox-gl-js#7821 Fixes: #14844, #14779, #15039
astojilj
force-pushed
the
astojilj-opaquePassCutOff
branch
from
July 9, 2019 11:28
a89473c to
3ffc14a
Compare
alexshalamov
approved these changes
Jul 9, 2019
astojilj
added a commit
that referenced
this pull request
Jul 19, 2019
astojilj
added a commit
to mapbox/mapbox-gl-js
that referenced
this pull request
Jul 19, 2019
Our combinations fill-extrusion render tests mostly combine fill extrusion with one other layer. This just serves for verifying it using more layers. It doesn't expose any particular issue - serves for verifying mapbox/mapbox-gl-native#15065
astojilj
added a commit
that referenced
this pull request
Jul 19, 2019
astojilj
added a commit
that referenced
this pull request
Jul 19, 2019
astojilj
added a commit
that referenced
this pull request
Jul 19, 2019
astojilj
added a commit
to mapbox/mapbox-gl-js
that referenced
this pull request
Jul 19, 2019
Our combinations fill-extrusion render tests mostly combine fill extrusion with one other layer. This just serves for verifying it using more layers. It doesn't expose any particular issue - serves for verifying mapbox/mapbox-gl-native#15065
2 of 5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes following issues:
state.getProjMatrix(nearClippedProjMatrix, 100)caused that tests with size 64x64 were notrendering fill extrusions: far plane calculated as 96.9 and near plane set to 100 was the cause.
Near plane is changed from hardcoded 100 to depend on state.getCameraToCenterDistance() - producing similar value but one that follows max zoom.
This caused that e.g. combinations/fill-extrusion-translucent--fill-opaque was falsely passing as only fill-opaque layer got rendered.
combinations/fill-extrusion-translucent--XXXX tests expose regression #14844 (comment) in #14844, #14779.
Fix (opaquePassCutoff, is3D) is ported from mapbox/mapbox-gl-js#7821
Fixes: #14844, #14779, #15039