janine
June 26, 2023, 2:23pm
2
It depends on what you mean by “height” of the terrain. Do you need the height of the terrain relative to the WGS84 ellipsoid? Or do you need the height of the terrain above sea level?
In any case, here are a couple of forum threads with similar questions. They may be applicable to your use case.
Hi @leielyq ,
Cesium for Unreal does not provide a way to set the sea height to 0, nor does it have a way to “pretend the world is flat” and ignore Earth curvature. But it should be possible to put your objects on the water surface without too much trouble.
If your area of interest is relatively small, such that Earth curvature is negligible, you can probably get pretty close to “sea is at Z=0” with just a little bit of effort. The main trick is in figuring out the WGS84 height of mean sea leve…
Hi @nhapeman ,
Great question. We are currently working on a direct way of querying the height of terrain given lat/long.
However, given your use case, a decal component might be well suited for your use case of drawing on top of the terrain.
If you do need to get the height in the meantime, you could try doing a line trace to the world terrain object and use the Z value. The only issue might be if the fully refined tile is not loaded in when doing the trace, in which case the resulting terrai…