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

Fix disappearing terrain #3365

Merged
merged 4 commits into from
Dec 22, 2015
Merged

Fix disappearing terrain #3365

merged 4 commits into from
Dec 22, 2015

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented Dec 18, 2015

Fix issue of disappearing terrain when fog is active (#3335). Changes GlobeSurfaceTileProvider.computeDistanceToTile to return 0.0 when the camera is inside the tile bounding region.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@mramato
Copy link
Contributor

mramato commented Dec 21, 2015

This still happens on my machine. Stop by and I'll show you.

@bagnell
Copy link
Contributor Author

bagnell commented Dec 21, 2015

@mramato It should be fixed now. Also fixed #3289.

@mramato
Copy link
Contributor

mramato commented Dec 22, 2015

I can confirm that this fixes both issues. Does anyone else want to review this?

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 22, 2015

@bagnell is this the final implementation

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 22, 2015

Did you get to the root of the issue as we discussed offline?

@@ -540,41 +540,54 @@ define([
*/
GlobeSurfaceTileProvider.prototype.computeDistanceToTile = function(tile, frameState) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@lilleyse we want this fix in the 3d-tiles branch TileBoundingBox class, otherwise we will reintroduce this bug when merging TileBoundingBox to master. You might want to cherry pick these commits and make the change right away.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok I'll do that.

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 22, 2015

Looks good!

pjcozzi added a commit that referenced this pull request Dec 22, 2015
@pjcozzi pjcozzi merged commit 23791f1 into master Dec 22, 2015
@pjcozzi pjcozzi deleted the issue3335 branch December 22, 2015 16:34
lilleyse added a commit that referenced this pull request Dec 22, 2015
@lilleyse lilleyse mentioned this pull request Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants