Hello Sean,
I am now building a tileset from scratch by myself.
I do the following steps:
-
I wrote a tileset.json with only one root tile, there is a parent.b3dm in the content.
-
I transform my models (four cubes exported from sketchup) into binary glTF through the web converter on your website.
-
I wrote the 20 byte binary header, and append the bglTF after the header. The batchlength and batchtablelength are both 0.
-
I add and modified three parts of the bglTF in .b3dm after appending:
I add CESIUM_RTC to extensionUsed:
“extensionsUsed”:[“CESIUM_RTC”],
And I add center ECEF coordinates to CESIUM_RTC, the coordinates are generated by Cesium.Transforms.eastNorthUpToFixedFrame from a origin in WGS84.
“extensions”: {
…
"CESIUM_RTC": {
"center": [
-2854779.6449591094,
4665794.49663563,
3269432.1747686574
]
}
}
And I changed the modelViewMatrix to CESIUM_RTC_MODELVIEW:
“techniques”: {
"technique0": {
"parameters": {
"modelViewMatrix": {
"semantic": "CESIUM_RTC_MODELVIEW",
"type": 35676
},
…
- And I modified the byteLength field in the header to the right bytelength after all modification.
However, the models is not displayed when I load the tileset.json in 3d-tiles example in Sandcastle,
The camera manged to fly to the right location and the console exports like this:
[Color]: Visited: 0, Selected: 0, Commands: 0 | Requests: 0, Processing: 0, Ready: 0, Total: 1 | Tiles styled: 0, Features styled: 0
[Color]: Visited: 0, Selected: 0, Commands: 0 | Requests: 1, Processing: 0, Ready: 0, Total: 1 | Tiles styled: 0, Features styled: 0
[Color]: Visited: 1, Selected: 0, Commands: 0 | Requests: 1, Processing: 0, Ready: 0, Total: 1 | Tiles styled: 0, Features styled: 0
[Color]: Visited: 1, Selected: 0, Commands: 0 | Requests: 0, Processing: 0, Ready: 0, Total: 1 | Tiles styled: 0, Features styled: 0
But I can not see models and even boundingRectangles. I guess I miss some important parts but I can’t see it.
Any help appreciated.
Thanks
Chris
在 2016年8月24日星期三 UTC+8下午11:22:03,Sean Lilley写道: