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

cesium1.36 Model transparency #5731

Closed
duoduohappy opened this issue Aug 8, 2017 · 17 comments
Closed

cesium1.36 Model transparency #5731

duoduohappy opened this issue Aug 8, 2017 · 17 comments

Comments

@duoduohappy
Copy link

duoduohappy commented Aug 8, 2017

2
cesium1.36
1
cesium1.35
Find a problem, cesium1.36 The model becomes transparent,cesium1.35 Display normal

@lilleyse
Copy link
Contributor

lilleyse commented Aug 8, 2017

Would you be able to send over the model? That will help for debugging this.

@pmconne
Copy link
Contributor

pmconne commented Aug 8, 2017

I'm also observing this issue. When globe is on, depth test appears to be disabled for translucent geometry only. If you have our OfficeBuilding data set, that one exhibits it - or I can send a simpler test case.

@pmconne
Copy link
Contributor

pmconne commented Aug 8, 2017

Translucent.zip

Globe off (translucent red cylinder behind opaque green cylinder):
image

Globe on:
image

@lilleyse
Copy link
Contributor

lilleyse commented Aug 8, 2017

Thanks @pmconne for uploading the model, I'll start looking into this and #5734.

@lilleyse
Copy link
Contributor

lilleyse commented Aug 8, 2017

@pmconne It seems like this is caused by the recent architectural changes that allowed classification primitives to work on 3D Tiles - see #5676 for more context.

Now the globe and opaque 3D Tiles are rendered together into the same depth buffer, and their depth is cleared after classification primitives are rendered. This causes the red cylinder, which is in the translucent pass, to not depth test against anything.

For the time being our recommendation is to set scene.globe.depthTestAgainstTerrain to true, but we hope to have a better solution before the next release.

@duoduohappy
Copy link
Author

Thanks @lilleyse , scene.globe.depthTestAgainstTerrain=true Display normal

@duoduohappy
Copy link
Author

@lilleyse vector layer Will the next release increase?

@lilleyse
Copy link
Contributor

lilleyse commented Aug 9, 2017

@lilleyse vector layer Will the next release increase?

It's unlikely that vector tiles will be ready by the next release. Or do you mean something else?

@duoduohappy
Copy link
Author

duoduohappy commented Aug 10, 2017

Thanks @lilleyse We refer to mapbox vector label and vector line , I wonder if Cesium will increase next release?

@pjcozzi
Copy link
Contributor

pjcozzi commented Aug 31, 2017

@lilleyse please close if you confirmed this is fixed in #5770.

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 22, 2017

Reopening to investigate @pmconne's use case when the globe is off.

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 2, 2018

Pushing post 1.41 release. @bagnell please still look at this soon, thanks!

@pjcozzi
Copy link
Contributor

pjcozzi commented Jan 18, 2018

@bagnell could you please look at this soon when you need a break from tests in #5615?

@bagnell
Copy link
Contributor

bagnell commented Jan 19, 2018

I can't reproduce this. I see the correct rendering regardless of whether the globe is on or off.

Translucent in front:
translucent_globe_off
Translucent in back:
translucent_behind_globe_off

@hpinkos
Copy link
Contributor

hpinkos commented Jan 19, 2018

@bagnell this area looks questionable
image

@hpinkos
Copy link
Contributor

hpinkos commented Jan 19, 2018

Or wait, I guess they're intersecting so that would be correct

@hpinkos
Copy link
Contributor

hpinkos commented Feb 26, 2018

I'm going to close this. I got the same results @bagnell did

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

6 participants