Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to load skylineglobe online 3dtiles by Cesium

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces Cesium how to load skylineglobe online 3dtiles, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

After the launch of skyline's plug-in-free version of web, open the official website of skyline to view some 3D data officially released by skyline online; the URL is http://skylineglobe.com/sg/TerraExplorerweb/.

Some data of tilted models have been released on the left. Click location to view the details of these models.

The plug-free version of skyline's web is developed based on the open source Cesium, so the model format handled by skyline also conforms to the Cesium standard.

The batch model of Cesium is loaded through 3dtiles. Open the web website of skyline, and find some links to tilejson files through network requests. For example, in Cesium, you can load the model of 3dtiles directly by loading this URL. The code is as follows:

Var viewer = new Cesium.Viewer ('cesiumContainer')

Var tileset = new Cesium.Cesium3DTileset ({

Url: 'http://www4.skylineglobe.com/SG/b3dm/Hod-Hasharon_Build_3_Entire_2705.1724701/tileset.json'

});

Viewer.scene.primitives.add (tileset)

/ / navigate to the model location

Viewer.zoomTo (tileset, new Cesium.HeadingPitchRange (0.0,-20,0))

The effect of loading is as follows:

Thank you for reading this article carefully. I hope the article "how Cesium loads skylineglobe online 3dtiles" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and follow the industry information channel. More related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report