-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 3D Tiles depth picking #5770
Conversation
…ation on both terrain and 3D Tiles.
Looks OK to me at quick glance. Just one request: can you add - or update - a Sandcastle example that shows the differences between the different enum types, e.g., a polyline going over only terrain, only a tileset, or both. @lilleyse can you review and verify each issue this fixed, and merge when ready? Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good and I confirmed the issues are fixed.
Source/Scene/ClassificationType.js
Outdated
* @type {Number} | ||
* @constant | ||
*/ | ||
CESIUM_3D_TILES : 1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency should this be renamed to CESIUM_3D_TILE
to match Pass.CESIUM_3D_TILE
and Pass.CESIUM_3D_TILE_CLASSIFICATION
?
@lilleyse This is ready for another look. |
@lilleyse This is ready. |
@lilleyse Updated after our offline discussion. |
Works well now. @pjcozzi instead of offsetting the depth plane we now just render the depth plane after the 3D Tiles pass. A tileset on the opposite side of the globe would probably not be rendered at all due to SSE. Can you think of possible edge cases? |
I'm going to merge, but if anyone has issues with the approach we can go back to offsetting the depth plane. |
Doesn't this mean that most apps will need to enable |
They shouldn't need to. The main side effect with moving the depth plane after 3D Tiles classification was that tilesets might show through the opposite side of the globe when |
Maybe this isn't a common case, but what if I have a label or a 3D model in drawn in the area of a 3D tileset, then I take a 45 degree horizon or top down view, wouldn't the depth values of the tileset be gone and the label/model would shown in front? |
I'm pretty sure that case is fixed with #5789. Now the depth plane doesn't overwrite the 3D Tiles depth. |
OK, sounds good! |
Fixes #5676, #5731, and #5683.
classificationType
property toGroundPrimitive
andClassificationPrimitive
which specifies whether to classify terrain, 3D Tiles, or both.