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

Add "backFaceCulling" option to Globe #7266

Closed
OmarShehata opened this issue Nov 15, 2018 · 1 comment · Fixed by #8470
Closed

Add "backFaceCulling" option to Globe #7266

OmarShehata opened this issue Nov 15, 2018 · 1 comment · Fixed by #8470

Comments

@OmarShehata
Copy link
Contributor

This came up on Stackoverflow:

https://stackoverflow.com/questions/53277048/how-do-i-clip-an-entity-or-geometry-against-underside-of-terrain

It seems to be a common scenario to isolate a piece of terrain like that (common enough that we have a Sandcastle for it). But one issue is that since backfaces are culled, you can see through the terrain, and that looks ugly.

Terrain with backface culling on

If you disable backface culling, it looks great:

terrain-no-culling

I did this by manually editing the source here:

https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Source/Scene/GlobeSurfaceTileProvider.js#L436-L458

It would be nice if this was an option. I think it could be part of the effort to give users more control over blend mode settings #7203. This particular case could easily be just a boolean you can set on the globe.

@IanLilleyT
Copy link
Contributor

Added backFaceCulling option to Globe in #8470.

globe.backFaceCulling = false fixes this issue.

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

Successfully merging a pull request may close this issue.

3 participants