CesiumGS / cesium

An open-source JavaScript library for world-class 3D globes and maps :earth_americas:
https://cesium.com/cesiumjs/
Apache License 2.0
13k stars 3.5k forks source link

Objects with translucent classification are rendered above all other translucent objects #9419

Open ebogo1 opened 3 years ago

ebogo1 commented 3 years ago

Sandcastle example: link

Browser: Firefox

Operating System: Linux

@lilleyse found this in #9399 - from a comment in that PR:

The translucent classification framebuffer is always rendered above all translucent objects in the scene. I don't think this is fixable without some major changes to the approach. GlobeTranslucency doesn't have this problem because it renders classification to a framebuffer first and then creates a derived command for each TRANSLUCENT command that applies the classification. I.e. classification is not applied as a screen-wide post process.

f

ggetz commented 1 year ago

This was also reported by a user. They supplied this sandcastle example to illustrate the issue.

ggetz commented 2 months ago

As noted in https://github.com/CesiumGS/cesium/issues/11740#issuecomment-2360663420, the issue is at least partly a due to OIT.