I am currently exploring on the Miami city sample data from CyberCity3D. I downloaded the Collada data and convert it to .glb, then convert it to .b3dm by 3d-tiles-tools. Now I have the .b3dm data, how can I use it?
Is there any recommended 3d building data sources which are already satisfied Cesium 3d requirements? Maybe some data source already has the tileset.json and b3dm files.
Does Cesium 3d tiles currently only support tilesets.json and .b3dm files data structure now? Or is there any other data format I can use in Cesium 3d tiles? Or I have always to find .dea or .obj data sources then convert them to .glb then .b3dm and manually write the tilesets.json file?
Thanks!
tileset._root.transform = Cesium.Transforms.headingPitchRollToFixedFrame(Cesium.Cartesian3.fromRadians(longitude, latitude, height), new Cesium.HeadingPitchRoll());
tileset.readyPromise.then(function(tileset) {
viewer.camera.viewBoundingSphere(tileset.boundingSphere, new Cesium.HeadingPitchRange(0, -0.5, 0));
viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
});
This piece of code works well for data in 3d-tiles-samples data and the NYC data, but not for the Miami data.
tileset.readyPromise.then(function(tileset) {
tileset.modelMatrix = Cesium.Transforms.headingPitchRollToFixedFrame(Cesium.Cartesian3.fromRadians(longitude, latitude, height), new Cesium.HeadingPitchRoll());
viewer.camera.viewBoundingSphere(tileset.boundingSphere, new Cesium.HeadingPitchRange(0, -0.5, 0));
viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);
});--
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/CLHWskikADQ/unsubscribe.
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.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.
----Best,Zhaokun
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.