Swisstopo in Unreal Engines Cesium Plugin

439 views
Skip to first unread message
Assigned to gilbert....@gmail.com by david...@gmail.com

Simon Gloor

unread,
Jul 7, 2021, 5:55:53 PM7/7/21
to GeoAdminCh API
Hello,

I've run some tests today with the Cesium Plugin for the Unreal Engine 4.26.

Screenshot 2021-07-07 153541.png

With some help of other posts here, I was able to connect to your Cesium service, but either the loaded glTF version was too low (v1 instead of v2) or I ran into 404 and 403 errors (Image: 2).

The terrain and the buildings in the image (Image: 3) are the Cesium defaults. I'd love to replace those with the Swisstopo version.

The setup (Image: 1) is very simple, I can only add a link and the plugin does the rest.

Does Swisstopo already support this plugin and if so, what addresses can I use to display both the Terrain and the Buildings using Swisstopo?

Best,
Simon

GeoAdminCh API

unread,
Jul 8, 2021, 8:33:14 AM7/8/21
to GeoAdminCh API
Hello Simon,

Your image is too small (2), can you show what kind of WMTS requests you are doing ?

Regards,

Marc

Simon Gloor

unread,
Jul 15, 2021, 9:17:00 AM7/15/21
to GeoAdminCh API
Hi Marc,

oh, I didn't see that the image got scaled down.
I've attached some URLs with their respective warnings/errors below.

Best,
Simon

---

The URLs I tried in the test above is:
https://vectortiles0.geo.admin.ch/3d-tiles/ch.swisstopo.swisstlm3d.3d/20180716/tileset.json
https://vectortiles0.geo.admin.ch/3d-tiles/ch.swisstopo.swisstlm3d.3d/20201020/tileset.json


It shows me this error message:
LogCesium: Error: [2021-07-15 15:05:18.262] [error] [GltfContent.cpp:32] Failed to load binary glTF from https://vectortiles0.geo.admin.ch/3d-tiles/ch.swisstopo.swisstlm3d.3d/20180716/10/926/209.b3dm:
- Only binary glTF version 2 is supported, found version 1

---

I've also tried other URLs like these:
https://vectortiles0.geo.admin.ch/3d-tiles/ch.swisstopo.swissnames3d.3d/20180716/tileset.json
https://vectortiles0.geo.admin.ch/3d-tiles/ch.swisstopo.vegetation.3d/20190313/tileset.json
https://terrain0.geo.admin.ch/1.0.0/ch.swisstopo.terrain.3d/default/20200520/4326/layer.json

Which show this warning:
LogCesium: Warning: [2021-07-15 15:07:07.972] [warning] [TileContentFactory.cpp:74] No loader registered for tile with content type 'binary/octet-stream' and magic value 'vctr'.


Simon Gloor

unread,
Jul 26, 2021, 3:02:04 AM7/26/21
to GeoAdminCh API

Hi again,

here is some more information if you're interested in how the plugin works:

GitHub Repository:
https://github.com/CesiumGS/cesium-unreal

Request Implementation: 
https://github.com/CesiumGS/cesium-unreal/blob/main/Source/CesiumRuntime/Private/UnrealAssetAccessor.cpp

The plugin for the Unreal Engine can be found on the cesium page and is the only current integration to any game engine on the market. Unreal itself is the leading engine for architectural purposes and other industries. Epic Games also owns several big names such as Twinmotion, CapturingReality (RealityCapture), or Quixel. This allows efficient workflows to scan environments, link CAD files and load geospatial maps, all in real-time.

To test it yourself you can Install Unreal 4.26 using the Epic Games Launcher and grab the Cesium for Unreal and Cesium for Unreal Samples from the Marketplace.

David Oesch

unread,
Jul 26, 2021, 3:53:51 AM7/26/21
to geoadm...@googlegroups.com
 Only binary glTF version 2 is supported, found version 1“

Yes . Swisstopo will need to update their Services to latest cesium version. Maybe 2022?

--
You received this message because you are subscribed to the Google Groups "GeoAdminCh API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geoadmin-api...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geoadmin-api/91878681-82cd-40ad-9137-082c7b03ee85n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages