how to run 3d-tile-samples?

hi

I want to learning how to use 3D Tiles and a simple Node.js server for serving tilesets. this link: https://github.com/AnalyticalGraphicsInc/3d-tiles-samples help me.

but when I run ‘npm start’, I see in http://localhost:8003/ that it show ‘Cannot GET’.

do you know that how I solve this problem?

please help me

thanks a lot

Hello,

You will need to download the 3D tiles branch of Cesum https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles

See our build guide for instructions for cloning and building the code base : https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles/Documentation/Contributors/BuildGuide

Best,

Hannah

Yeah just to add on to Hannah’s message, the 3d-tiles-samples repo is only hosting the data. You need to run a Cesium app that points to the http://localhost:8003 url (like in the sample code provided in the 3d-tiles-samples github page).

Thank you Hannah. I do it but dont work yet

Thank you Sean

I do it but I dont know that where should I put below code:

var viewer = new Cesium.Viewer('cesiumContainer', {
    scene3DOnly : true
});

var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
    url : 'http://localhost:8003/tilesets/TilesetWithDiscreteLOD/'
}));

tileset.readyPromise.then(function(tileset) {
    viewer.camera.viewBoundingSphere(tileset.boundingSphere, new Cesium.HeadingPitchRange(0, -0.5, 0));
    viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
});

do you know that where I should put it?

Probably the easiest place to try out the code is Sandcastle. After building and running Cesium locally you can go to http://localhost:8080/Apps/Sandcastle/index.html?src=Hello%20World.html&label=Showcases and paste the code there.

You will need to download the 3D tiles branch of Cesum https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles
See our build guide for instructions for cloning and building the code base : https://github.com/AnalyticalGraphicsInc/cesium/tree/3d-tiles/Documentation/Contributors/BuildGuide

Is this branch merged into master yet?

3d-tiles is not merged into master yet, but we hope to do it next month - check out the PR here: https://github.com/AnalyticalGraphicsInc/cesium/pull/5308