how to run 3d-tile-samples?

153 views
Skip to first unread message

Fatemeh Zare

unread,
Nov 21, 2016, 9:18:34 AM11/21/16
to cesium-dev
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

Hannah Pinkos

unread,
Nov 21, 2016, 11:27:53 AM11/21/16
to cesium-dev
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

Sean Lilley

unread,
Nov 21, 2016, 11:34:01 AM11/21/16
to cesium-dev
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).

Fatemeh Zare

unread,
Nov 22, 2016, 3:32:56 AM11/22/16
to cesium-dev
Thank you Hannah. I do it but dont work yet

Fatemeh Zare

unread,
Nov 22, 2016, 3:41:17 AM11/22/16
to cesium-dev
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?

Sean Lilley

unread,
Nov 22, 2016, 9:29:18 AM11/22/16
to cesium-dev
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.

maw...@gmail.com

unread,
May 31, 2017, 5:09:29 PM5/31/17
to cesium-dev
> 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?

Sean Lilley

unread,
May 31, 2017, 7:44:52 PM5/31/17
to cesium-dev, maw...@gmail.com
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
Reply all
Reply to author
Forward
0 new messages