CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
937 stars 295 forks source link

How can I load local url on Ubuntu #1319

Closed Willis814 closed 10 months ago

Willis814 commented 10 months ago

Because my project is based on Ubuntu20.04-UE4.26, I downloaded CesiumForUnreal-426-v1.20.1 and put it in the UE plugin, but when I load the local Tile (file:///home/willis/Cesium /t1/tileset.json): [TilesetContentManager.cpp:731] An unexpected error occurs when loading tile: Request failed. So is there any way to solve it without changing the version? The detailed error log is as follows: [2023.12.09-07.54.54:677][592]LogCesium: Loading tileset from URL file:///home/willis/Cesium/t1/tileset.json [2023.12.09-07.54.54:677][592]LogCesium: Loading tileset from URL file:///home/willis/Cesium/t1/tileset.json done [2023.12.09-07.54.54:693][593]LogHttp: Warning: 0x7ffd4cf58df0: request failed, libcurl error: 1 (Unsupported protocol) [2023.12.09-07.54.54:693][593]LogHttp: Warning: 0x7ffd4cf58df0: libcurl info message cache 0 (Protocol "file" not supported or disabled in libcurl) [2023.12.09-07.54.54:693][593]LogHttp: Warning: 0x7ffd4cf58df0: libcurl info message cache 1 (Closing connection -1) [2023.12.09-07.59.59:362][593]LogCesium: Error: [2023-12-09 15:59:59.362] [error] [TilesetContentManager.cpp:731] An unexpected error occurs when loading tile: Request failed .

IndigoCloud6 commented 10 months ago

local url “file:///” only support Windows with CesiumForUnreal-426-v1.20.1

Willis814 commented 10 months ago

local url “file:///” only support Windows with CesiumForUnreal-426-v1.20.1 All right.Thanks for your reply.But is there really no other way to load local 3dtiles on Ubuntu-UE4.26?😭😭

kring commented 10 months ago

There is no way. You need to upgrade to Unreal Engine v5.1+, and then you can use Cesium for Unreal v2.1.0 which has full support for file URLs, including on Linux.

kring commented 10 months ago

The workaround, if you must continue to use a very old and outdated version of both Unreal Engine and Cesium for Unreal, is to run a local web server to host your files instead of using a file:/// URL.