Skip to content

03 Real 3D GEO

MHefny edited this page Nov 18, 2020 · 2 revisions

3D Terrain

Using three-geo library and with some changes SITL can fly using real terrain in 3D. It does not matter if SITL make use of terrain data or not in both cases Mavlink3DMap will display the correct relative position.

Two Modes

Real maps can be displayed in 2D as a flat plan or in 3D as a mesh. It only depends on Z-Dimension of scaling. However 3D mesh implies extra complication related to relative and absolute heights. in some cases vehicles is disappeared under terrain due to slight height data mismatch.

Use the following as templates

http://127.0.0.1:9080/index_4wRealMap.html for 2D Plan map.

http://127.0.0.1:9080/index_4w3dReal.html for 3D mesh map.

Real 3D Mountain Views

you need to use js_3dRealBlank.js for more info use http://127.0.0.1:9080/index_4w3dReal.html

IMPORTANT: you need to edit location in:

const terrain = await tgeo.getTerrainRgb

Clone this wiki locally