How to flatten bathymetry data

classic Classic list List threaded Threaded
5 messages Options
DC DC
Reply | Threaded
Open this post in threaded view
|

How to flatten bathymetry data

Hello,

Does anyone have a way to flatten bathymetry data at a certain altitude? I want to set the height to 0 when Triton disables (at some arbitrary altitude).

I display an ocean color at this altitude, but the bathymetry data can still be seen (see screenshot). At this point, I would like the 'ocean mountains' to flatten.

I've looked at the examples and have yet to figure out a way to do this. Even injecting a geometry shader gives me weird results (split tiles for one)

Thanks.

gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How to flatten bathymetry data

DC,
You are in luck because I happen to have just a shader lying around:
https://pastebin.com/rNDUFQiK
Glenn Waldron / Pelican Mapping
DC DC
Reply | Threaded
Open this post in threaded view
|

Re: How to flatten bathymetry data

Thanks!

I'll try it out.
DC DC
Reply | Threaded
Open this post in threaded view
|

Re: How to flatten bathymetry data

Works as advertised.

Thanks again!
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: How to flatten bathymetry data

Great. I wanted to add one note. Since terrain tile culling happens based on the unaltered geometry, you will probably see culling anomalies if you zoom in close to the ground (i.e. missing tiles). But since you are only using this at higher altitudes you will probably be OK.
Glenn Waldron / Pelican Mapping