Add support for subsurface / bathymetry.
CC #526
Related
Development
Suggestion from the forum: do depth test when the terrain is opaque and disable depth test when the terrain is translucent, like this screenshot below:

https://groups.google.com/forum/#!topic/cesium-dev/M7cKgT1IEsw
Forum request specifically for underground camera controls:
https://groups.google.com/forum/#!topic/cesium-dev/lSprfKeRJD8
https://groups.google.com/forum/#!searchin/cesium-dev/underground%7Csort:date/cesium-dev/kFW_x_slkrY/ZGSATjGVBAAJ
On the forum here: https://groups.google.com/forum/#!topic/cesium-dev/25jPqr5ODg0%5B101-125%5D
The idea was brought up to treat the surface of the ocean as a "layer" which you could show or hide.
Requested again to render "underground mineral function": https://groups.google.com/d/msg/cesium-dev/Sb47qbQ_0NA/ODiezbeeAAAJ
One thing to fix as part of this would be terrain skirts being visible when looking at underground data. This thread has screenshots and a Sandcastle of the issue:
https://groups.google.com/d/msg/cesium-dev/ZVgo6VNeOUo/-OW4eoMMGgAJ
The goal is to use clipping planes in order to:
...open the globe at a specific defined region for the user to see subsurface layers there (which are included through a tileset).
Requested again on the forum. There's also some sample code of a use case here and a possible texture rendering bug, but I haven't been able to reproduce this:
https://groups.google.com/d/msg/cesium-dev/79R_lZaCdds/YxECMxg_BgAJ
Does cesium optimize this problem at present?
I think there are several situations of underground mode:
@yoyomule we're adding underground support as part of https://github.com/CesiumGS/cesium/pull/8726 and https://github.com/CesiumGS/cesium/pull/8811
For (2), what type of distinction do you have in mind? Like a color or post processing effect? Curious if you have an images / screenshots for this sort of behavior,
Thanks.


Hi, we are looking for this solution as autonomous underwater vehicles and unmanned surface vehicles are becoming increasingly more prevalent. We would like a portal for our data and I'm wondering if this feature is on the roadmap?
@oi-eddyoj we are actively working on improving underground camera controls here: https://github.com/CesiumGS/cesium/pull/8811. That may help depending on your exact use case. Can you post some sample data or more info about your use case on the Cesium community forum (https://community.cesium.com/)? I can take a look and let you know if there's any known workarounds for the issues you're running into or if it's something fixed by those upcoming improvements.
Most helpful comment
Suggestion from the forum: do depth test when the terrain is opaque and disable depth test when the terrain is translucent, like this screenshot below:
https://groups.google.com/forum/#!topic/cesium-dev/M7cKgT1IEsw