# program Can't read  \*.b3dm file

**URL:** <https://community.cesium.com/t/program-cant-read-b3dm-file/4387>\
**Category:** CesiumJS\
**Created:** [July 18, 2016, 4:27am UTC](https://community.cesium.com/t/program-cant-read-b3dm-file/4387 "2016-07-18T04:27:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![liyihong123456](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@liyihong123456](https://community.cesium.com/u/liyihong123456)\
**Post date:** [July 18, 2016, 4:27am UTC](https://community.cesium.com/t/program-cant-read-b3dm-file/4387/1 "2016-07-18T04:27:10Z")

</div>

My apache doesn’t read \*.b3dm file from [https://cesiumjs.org/NewYork](https://cesiumjs.org/NewYork) .

Now I download all data-NewYork.zip from [https://cesiumjs.org/NewYork](https://cesiumjs.org/NewYork) . (json and all 3d tiles \*.b3dm).

I can run all 3d tiles example which include also \*.b3dm but I find it can’t read \*.b3dm.

codes are below:

tileset = scene.primitives.add(new Cesium.Cesium3DTileset({

url : url,

debugShowStatistics : true

}));

return Cesium.when(tileset.readyPromise).then(function(tileset) {

var boundingSphere = tileset.boundingSphere;

viewer.camera.viewBoundingSphere(boundingSphere, new Cesium.HeadingPitchRange(0, -2.0, 0));

viewer.camera.lookAtTransform(Cesium.Matrix4.IDENTITY);

console.log(tileset); ----------------------------------------- alwayers are undefinec

Please notice these codes are userful for branch website examples.

1 I want to know whether \*.b3dm of Network is other than example data and whether they are gzipped or encrypted??

2 How to configure it in apache server or PHP configuration file so that it can run?

---

<div class="post-metadata">

**Author:** ![liyihong123456](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@liyihong123456](https://community.cesium.com/u/liyihong123456)\
**Post date:** [July 18, 2016, 8:26am UTC](https://community.cesium.com/t/program-cant-read-b3dm-file/4387/2 "2016-07-18T08:26:03Z")

</div>

It seems that [NewYork](https://cesiumjs.org/NewYork) uses K-d tree 3d tiles algorthm.?  
Can It be designed as R tree?

在 2016年7月18日星期一 UTC+8下午12:27:11，liyihon…@163.com写道：

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [July 18, 2016, 11:30pm UTC](https://community.cesium.com/t/program-cant-read-b3dm-file/4387/3 "2016-07-18T23:30:34Z")

</div>

Hi,

This issue may be of interest: [https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/91](https://github.com/AnalyticalGraphicsInc/3d-tiles/issues/91)

Yes, you can use an R tree instead of a k-d tree. The tree just needs to preserve spatial coherence. For more details, see [https://github.com/AnalyticalGraphicsInc/3d-tiles#bounding-volume-spatial-coherence](https://github.com/AnalyticalGraphicsInc/3d-tiles#bounding-volume-spatial-coherence)

Patrick
