var viewer = new Cesium.Viewer('cesiumContainer'); var tileset = viewer.scene.primitives.add(new Cesium.Cesium3DTileset({ //url: 'http://hosting.virtualcitysystems.de/demos/release/data/buildings/berlin_notex_toplevel/tiles.json', url: 'Data/Cesium3DTiles/Tilesets/Tileset/tileset.json', show: true })); var redRectangle = viewer.entities.add({ name : 'Red translucent rectangle with outline', rectangle : { coordinates : Cesium.Rectangle.fromDegrees(13.40483721, 52.46717907, 13.404882244, 52.46724347), material : Cesium.Color.RED.withAlpha(0.0), outline : true, outlineColor : Cesium.Color.RED } }); viewer.flyTo(redRectangle, { offset : new Cesium.HeadingPitchRange(Math.PI / 2, -Math.PI / 4, 20) });Data/Cesium3DTiles/Tilesets/Tileset/tileset.json
Please take a look at the 3D Tiles Sandcastle example. Particularly, this code shows you how to add one of the sample data sets: https://github.com/AnalyticalGraphicsInc/cesium/blob/3d-tiles/Apps/Sandcastle/gallery/3D%20Tiles.html#L40-L53
var viewer = new Cesium.Viewer('cesiumContainer', { scene3DOnly : true});
var scene = viewer.scene;
var tilesetUrl = 'Data/Cesium3DTiles/Tilesets/Tileset/';var batchedUrl = '../../../Specs/Data/Cesium3DTiles/Batched/BatchedWithBatchTable/';var instancedUrl = '../../../Specs/Data/Cesium3DTiles/Instanced/InstancedWithBatchTable/';var compositeUrl = '../../../Specs/Data/Cesium3DTiles/Composite/Composite/';var pointsUrl = '../../../Specs/Data/Cesium3DTiles/Points/Points/';//url: 'http://hosting.virtualcitysystems.de/demos/release/data/buildings/berlin_notex_toplevel/tiles.json',
var tileset;
{ tileset = scene.primitives.add(new Cesium.Cesium3DTileset({ url : tilesetUrl, show: true })); console.log( "ready!" ); Cesium.when(tileset.readyPromise,function(tileset) { var boundingBox = tileset._root._boundingVolume; var center = Cesium.Rectangle.center(boundingBox.rectangle); var height = boundingBox.maximumHeight + 500.0; viewer.camera.setView({ destination : Cesium.Cartesok something weird is going on.
the results of the 3d tiles is very intermittent. some times the sandcastle displays then it doesnt.
sometimes my simple 3d tiles displays sometimes not.
is there some timing issues going on?
it never seems to work in firefox. but occasionally in chrome.
any any ideas are most welcome.
regards
Lucio PIccoli
--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/EPjCzYgmIxo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"Note that the tile payloads in the repo (e.g., *.b3dm, *.i3dm, etc.) are gzipped."
To unsubscribe from this group and all its topics, send an email to cesium-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.