Cesium for UE4 加载离线地形和影像
CTB 切片地形
编译cesium-terrain-builder
{
"tilejson": "2.1.0",
"name": "tiles",
"description": "",
"version": "1.1.0",
"format": "quantized-mesh-1.0",
"attribution": "",
"schema": "tms",
"extensions": [ "octvertexnormals" ],
"tiles": [ "{z}/{x}/{y}.terrain?v={version}" ],
"projection": "EPSG:4326",
"bounds": [ 0.00, -90.00, 180.00, 90.00 ],
"available": [
[ { "startX": 0, "startY": 0, "endX": 1, "endY": 0 } ]
,[ { "startX": 3, "startY": 1, "endX": 3, "endY": 1 } ]
,[ { "startX": 6, "startY": 2, "endX": 6, "endY": 3 } ]
,[ { "startX": 12, "startY": 5, "endX": 13, "endY": 6 } ]
,[ { "startX": 25, "startY": 11, "endX": 26, "endY": 12 } ]
,[ { "startX": 51, "startY": 22, "endX": 53, "endY": 24 } ]
,[ { "startX": 103, "startY": 44, "endX": 106, "endY": 48 } ]
,[ { "startX": 206, "startY": 88, "endX": 213, "endY": 96 } ]
,[ { "startX": 412, "startY": 177, "endX": 426, "endY": 192 } ]
,[ { "startX": 824, "startY": 355, "endX": 853, "endY": 384 } ]
,[ { "startX": 1649, "startY": 711, "endX": 1706, "endY": 768 } ]
,[ { "startX": 3299, "startY": 1422, "endX": 3413, "endY": 1536 } ]
,[ { "startX": 6599, "startY": 2844, "endX": 6826, "endY": 3072 } ]
]
}
TMS 影像
<?xml version="1.0" ?>
<tilemap tilemapservice="http://tms.osgeo.org/1.0.0" version="1.0.0">
<title>default</title>
<abstract></abstract>
<SRS>EPSG:4326</SRS>
<vsrs></vsrs>
<Boundingbox maxx="180.0000000000000000000000000" maxy="90.0000000000000000000000000" minx="-180.0000000000000000000000000" miny="-90.0000000000000000000000000" />
<Origin x="-180.0000000000000000000000000" y="-90.0000000000000000000000000" />
<Tileformat extension="png" height="256" mime-type="image/png" width="256" />
<TileSets profile="global-geodetic">
<TileSet href="0" order="0" units-per-pixel="0.7031250000000000000000000" />
<TileSet href="1" order="1" units-per-pixel="0.3515625000000000000000000" />
<TileSet href="2" order="2" units-per-pixel="0.1757812500000000000000000" />
<TileSet href="3" order="3" units-per-pixel="0.0878906250000000000000000" />
<TileSet href="4" order="4" units-per-pixel="0.0439453125000000000000000" />
<TileSet href="5" order="5" units-per-pixel="0.0219726562500000000000000" />
<TileSet href="6" order="6" units-per-pixel="0.0109863281250000000000000" />
<TileSet href="7" order="7" units-per-pixel="0.0054931640625000000000000" />
<TileSet href="8" order="8" units-per-pixel="0.0027465820312500000000000" />
<TileSet href="9" order="9" units-per-pixel="0.0013732910156250000000000" />
<TileSet href="10" order="10" units-per-pixel="0.0006866455078125000000000" />
<TileSet href="11" order="11" units-per-pixel="0.0003433227539062500000000" />
<TileSet href="12" order="12" units-per-pixel="0.0001716613769531250000000" />
<TileSet href="13" order="13" units-per-pixel="0.0000858306884765625000000" />
<TileSet href="14" order="14" units-per-pixel="0.0000429153442382812500000" />
<TileSet href="15" order="15" units-per-pixel="0.0000214576721191406250000" />
<TileSet href="16" order="16" units-per-pixel="0.0000107288360595703130000" />
<TileSet href="17" order="17" units-per-pixel="0.0000053644180297851563000" />
<TileSet href="18" order="18" units-per-pixel="0.0000026822090148925781000" />
<TileSet href="18" order="19" units-per-pixel="0.0000013411045074462891000" />
<TileSet href="20" order="20" units-per-pixel="0.0000006705522537231445300" />
<TileSet href="21" order="21" units-per-pixel="0.0000003352761268615722700" />
<TileSet href="22" order="22" units-per-pixel="0.0000001676380634307861300" />
</TileSets>
<dataextents>
<dataextent maxlevel="5" maxx="180.0000000000000000000000000" maxy="90.0000000000000000000000000" minlevel="0" minx="-180.0000000000000000000000000" miny="-90.0000000000000000000000000" />
</dataextents>
</tilemap>
cesium native
解析TMS
影像相关代码:
Nginx 搭建本地服务
参见火星科技 发布三维数据服务将上述数据发布。
效果
文章来源:https://www.toymoban.com/news/detail-504405.html
参考
1、3DTiles Terrian Builder文章来源地址https://www.toymoban.com/news/detail-504405.html
到了这里,关于Cesium for UE4 加载离线地形和影像的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!