Good morning,
I’m trying to load and display my 3D tiles file with CesiumJS on my windows station and chrome web browser.
Cesium server seems to running fine locally. When i type the 'npm start’command via one windows prompt command, it appears :
> *C:\LAURENT\GESTION_PROJET\AMOAIGN-2020-MNS_TEXTURES\Cesium-1.72>npm start*
> >node server.cjs
> *Cesium development server running locally. Connect to http://localhost:8080/*
Indeed, browse to http://localhost:8080/ is displaying well.
But i have a problem in order to read with Cesium my 3Dtiles tileset.
In another windows prompt command, i type this following command :
*C:\Users\lcelati>python -m http.server* *Serving HTTP on :: port 8000 (http://[::]:8000/)*
I paste below my sancastle javascript :
> var viewer = new Cesium.Viewer("cesiumContainer", {
>
> });
>
> var tileset = new Cesium.Cesium3DTileset({
> url: 'http://localhost/3D-Tiles/tileset.json'
> });
>
> viewer.scene.primitives.add(tileset);
>
> tileset.readyPromise.then(function (tileset) {
> viewer.scene.camera.setView({
>
> destination: tileset.root.boundingVolume.rectangle,
> });
> });
When i run the code, nothing appears with no error message within the console.
According to me, the problem would be come from my tileset path. Could you tell me where i should store my 3Dtiles dataset ? Within my python path? Cesium path?
Should i add some lines within my javascript sancastle file regarding the python server ?
In advance, thanks a lot for your usefull help.
With kind regards.