Hi there,
I would like to represent non-fly zones for my drone simulator based on Cesium for Unreal. These zones are polygons shapes for which I have the GPS coordinates of each point in a .kml file.
When the drone flies in the level, I would like to see these zones in 3D to show that my path successfully avoids these zones.
Is there a way to create a polygon using GPS coordinates for the points? And then extrude it to make a 3D shape?
Thanks a lot!
Hi @Leane_Donze, welcome to the community!
There’s currenly nothing built-in to do this. But you can use functions on the CesiumGeoreference to convert longitude/latitude/height to Unreal world coordinates, and then use built-in Unreal tools to create a volume. Something like earcut.hpp will be useful to create triangles from a polygon.
Hi @Kevin_Ring, thanks for the reply!
In case it can help someone else, I will briefly explain the solution I found.
I managed to create a Procedural Mesh component in Blueprint using my GPS coordinates.
It is a bit painful to create the Vertices and Triangles, but it seems to work well.
Well done, that looks great! If you’re able to share any more information about how you created the procedural mesh, I’m sure others in the community would find that extremely helpful!