CesiumForUnreal realizes polygon clipping 3dTileset effect

1. Achieve goals

Cartographic PolygonThe Actor based on the CesiumForUnreal plug-in Runtimerealizes the polygon clipping effect of the terrain 3DTileset in the runtime environment. The GIF animation is as follows:

insert image description here

2. Implementation process

For the specific operation process in the Editor, you can refer to the official tutorial of CesiumForUnreal clipping terrain. This article is implemented in the Runtime environment. The data is still using the CesiumForUnreal plug-in to load online terrain and image data.

(1) First look at Cesium World Terrainthe material of this terrain 3DTileset. You can see that there is no specific material instance set by default, but by reading the source code of the plug-in, it is found that it will automatically use the MI_CesiumThreeOverlaysAndClippingmaterial instance by default. The directory location is "CesiumForUnreal/Materials/Instances/" .

Guess you like

Origin blog.csdn.net/weixin_45782925/article/details/129867424