Cesium Chinese Website: http://cesiumcn.org/ | China Fast Access: http://cesium.coinidea.com/
Pelican Mapping is excited to announce support for loading 3D Tiles and Bing imagery from Cesium ion into their osgEarth digital earth rendering toolkit.
Adding 3D Tiles Support
osgEarth rendering data from Cesium ion for Melbourne, Australia
Over the past year, we’ve been developing support for 3D Tiles in osgEarth, and it has proven to be an exciting and efficient runtime format. We first developed a glTF reader/writer for OpenSceneGraph based on TinyGLTF. Building on top of that, we built a 3D Tiles Layer plugin for osgEarth to handle streaming tiles. osgEarth uses the same screen space error metric that Cesium uses to decide when to load and display tiles, so the 3D Tiles layer should look the same in osgEarth as it does in Cesium. After developing the 3D Tiles loader, we were able to quickly add support for Cesium ion by adding authorization-based ion tokens to the 3D Tiles layer.
Bing Maps
osgEarth rendering Bing imagery with labels via Cesium ion
We also added support for Bing Maps from Cesium ion to osgEarth. osgEarth already had a Bing imagery driver, so we used Cesium ion’s API to get the Bing key and map style, and then created an osgEarth Bing imagery layer on top of the driver, with credentials provided by Cesium ion. We hope to add support for more external imagery types in the future.
Putting It All Together
Here is an example Earth file showing how to load content from Cesium ion into osgEarth.
<map name="Cesium ion">
<CesiumIonImage name="Bing Maps Aerial With Labels">
<asset_id>3</asset_id>
</CesiumIonImage>
<CesiumIon3DTiles name="Melbourne">
<asset_id>69380</asset_id>
</CesiumIon3DTiles>
</map>
You can set the Cesium ion token as an environment variable, then load the earth file using any osgEarth-based application.
export OSGEARTH_CESIUMION_KEY=YOUR_API_KEY
osgearth_viewer cesiumion.earth
Author: Jason Beverage
Original link: https://cesium.com/blog/2020/04/02/osgearth-supports-cesium-ion-assets/
Comment: osgEarth announces support for Cesium ion.
Cesium Chinese Website QQ Group: 807482793
Cesium Chinese Website: http://cesiumcn.org/ | China Fast Access: http://cesium.coinidea.com/