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

Classification type ignored when depthTestAgainstTerrain is true #6568

Closed
lilleyse opened this issue May 7, 2018 · 4 comments
Closed

Classification type ignored when depthTestAgainstTerrain is true #6568

lilleyse opened this issue May 7, 2018 · 4 comments

Comments

@lilleyse
Copy link
Contributor

lilleyse commented May 7, 2018

The classification type is CESIUM_3D_TILE. When globe.depthTestAgainstTerrain is true the polygon classifies both the tileset and terrain, as in the second image.

no-depth-test

depth-test

Sandcastle demo

@bagnell could you check this out?

@bagnell
Copy link
Contributor

bagnell commented May 15, 2018

This has always been a problem. The stencil shadow volumes use whatever is in the depth buffer so if terrain and 3D Tiles have been drawn with depth rites enabled, then the classification is applied to them. One solution would be to drawn terrain after 3D Tiles, but we would have the opposite problem.

@lilleyse
Copy link
Contributor Author

I don't know whether or not this is related, but the classification type also gets ignored if world terrain is used.

terrain-on-off
Sandcastle

@mramato
Copy link
Contributor

mramato commented May 29, 2018

BaseLayerPicker automatically enables depthTestAgainstTerrain, so it's the same bug.

@lilleyse
Copy link
Contributor Author

Ah, alright. Thanks @mramato

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants