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

Tileset mixed refinement fix #7099

Merged
merged 4 commits into from
Oct 1, 2018
Merged

Tileset mixed refinement fix #7099

merged 4 commits into from
Oct 1, 2018

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Oct 1, 2018

Fixes #7084

The problem was a tile referencing an external tileset would pass the visibility test but it's child, the root of the external tileset, would not due to the cullWithChildrenBounds optimization. This is why #7084 could only be replicated in views where the root's children were all off screen. The external tileset would not refine further and would select its nearest loaded ancestor, causing the tileset to render mixed LODs.

The fix is to use the root tile's visibility in place of its parent's visibility so that the traversal never gets to the parent tile in the first place.

To do:

  • Test

@cesium-concierge
Copy link

Thanks for the pull request @lilleyse!

  • ✔️ Signed CLA found.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@lilleyse
Copy link
Contributor Author

lilleyse commented Oct 1, 2018

Updated.

@ggetz could you review?

@@ -316,6 +316,13 @@ define([
return;
}

if (tile.hasTilesetContent && tile.children.length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd add a quick comment to explain why this is needed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also we're already defining var hasChildren = tile.children.length > 0; on line 334, move it up here?

@lilleyse
Copy link
Contributor Author

lilleyse commented Oct 1, 2018

@ggetz Updated.

@ggetz
Copy link
Contributor

ggetz commented Oct 1, 2018

Looks good, thanks @lilleyse!

@ggetz ggetz merged commit 9feb15b into master Oct 1, 2018
@ggetz ggetz deleted the tileset-fix branch October 1, 2018 15:01
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.

3d Tile mixed refinement not completing, causing face culling
3 participants