cesium-unreal icon indicating copy to clipboard operation
cesium-unreal copied to clipboard

Add support for a smooth/ellipsoid terrain model

Open jianxiao1754 opened this issue 4 years ago • 6 comments

I add a Cesium3DTileset with "Cesium World Terrain + Bing Maps Aerial imagery", then I replace the Cesium ion Raster Overlay component of the newly added Cesium3DTileset Actor with CesiumTileMapServiceRasterOverlay component, and set the CesiumTileMapServiceRasterOverlay component's url point to my local tms server, so far it woks as expected. But when I disconnect the network( I need to work offline), it can't load any tile maps. The Output Log panel shows an error as

"LogCesium: Error: [2021-05-09 10:52:10.619] [error] [Tileset.cpp:142] Received status code 401 for asset response https://api.cesium.com/v1/assets/0/endpoint",

I guess that the Cesium3DTileset need to load the tileset.json, then the CesiumTileMapServiceRasterOverlay will work. But how can I just use the CesiumTileMapServiceRasterOverlay offline without the need to load any tileset.json, because I don't need any tilesets like terrain or 3D models.

jianxiao1754 avatar May 09 '21 03:05 jianxiao1754

Cesium for Unreal needs a terrain model - not just the tileset.json, but the tiles as well - in order to hang the raster overlay on something. Without terrain, you effectively have textures but no geometry.

CesiumJS has something called an EllipsoidTerrainProvider, that effectively provides zero-height geometry over the entire globe. We could bring something like this to Cesium for Unreal, but I'm not sure how useful it is. It makes for a very smooth and unrealistic-looking globe. Is that what you're after in this case?

kring avatar May 09 '21 11:05 kring

Thank you very much for your reply, what you said is the result I want. When I use Cesium for Unreal to present the earth, the camera is far away from the earth, It just shows a rough shape of the earth and doesn't care about the details of the terrain, because it does not affect the overall visual effect.

There is another reason, I need to deploy and use it offline. If the terrain data is bundled together, it will not improve the final effect, but will increase the workload. According to some projects I know, there are still many situations where terrain data is not needed, and map imagery is sufficient.

And it would be great if you can add the feature like CesiumJS you mentioned.

jianxiao1754 avatar May 09 '21 12:05 jianxiao1754

Ok, thanks, I've updated the title of this issue to reflect that it's a feature request for an ellipsoidal terrain model option.

kring avatar May 10 '21 06:05 kring

是不是建立本地服务器离线加载地图到UE4里?成功了嘛

hongzhou91 avatar Jun 04 '21 06:06 hongzhou91

Is anyone working on the feature? I think it's useful.

ligaofeng0901 avatar Jan 17 '22 08:01 ligaofeng0901

This is in progress. Also, just realized that we ended up with a duplicate issue for this, so I'm closing https://github.com/CesiumGS/cesium-unreal/issues/817.

Here's a collection of threads requesting this feature: thread 1, thread 2, thread 3, thread 4, thread 5. Once this is complete, we should update those threads.

argallegos avatar May 12 '22 19:05 argallegos

Checking on the progress of this since it looks to be 'in progress' 5 months now. I Really need a solution and this is a start to that. I tried the flat DTM 'fix' but the ellipsoid doesn't match and it makes all my Raster Overlays for water, clipping, etc, fail. I see being able to force a flat world as the first step to avoid issues like in the photos below. fixing the errors in the topology after the fact is a hard problem. Would the team consider it a good enhancement to support a sort of "Poly reduction raster overlay" using the same design pattern as the other raster overlays? In this material blend, vertices inside the polygon would be ranked by tangent angle delta. Then delete those above a threshold value. The advantage is the result would blend in to the surrounding area and there is some control for driving it all the way flat or leaving some undulation.

Which road / parking lot would you rather be on? image

cevanno avatar Oct 29 '22 01:10 cevanno

It's still in progress...

ligaofeng0901 avatar Nov 09 '22 03:11 ligaofeng0901