1. A concise explanation of the problem you’re experiencing.
I have been exploring different features of CesiumJS. In the process, I am trying to load a BIM as a model without tiling. I have taken a large BIM(.obj format) of size 280MB. Converted it into ‘gltf’ using obj2gltf.
Now using gltf-pipeline, I have applied Draco compression - the command used:
“gltf-pipeline -i phx_glb_uncompressed.gltf -o modelDraco0.glb -d --draco.compressionLevel 0 -b”
However, when loading the glb as entity(pls see code below), the globe will be shown first and after some time, the viewer is getting zoomed to entity. If I use normal gltf( i.e one without applying draco compression using gltf-pipeline) it gets rendered faster.
I tried debugging the code, but couldn’t understand which process is taking so much time to load the model on the viewer.
If someone could help me understand the process, it will be really helpful. Also, how can I reduce the time to render Draco compressed model? Thank you.
the files used : https://drive.google.com/drive/folders/1fse-hrQMioyVfjvTpFDCwty-tg97ALNd?usp=sharing
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
Sample code:
var entity = viewer.entities.add({
name : “http://localhost:8003/tilesets/LakesideRestaurant.glb”,
//name : “http://localhost:8003/tilesets/LakesideRestaurant.gltf”,
position : position,
orientation : orientation,
model : {
uri : “http://localhost:8003/tilesets/LakesideRestaurant.glb”,
//uri : “http://localhost:8003/tilesets/LakesideRestaurant.gltf”,
minimumPixelSize : 128,
maximumScale : 20000
}
});
viewer.trackedEntity = entity;
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I wanted to understand how the Draco compression helps in the faster rendering of the 3d BIM model
4. The Cesium version you’re using, your operating system and browser.
cesium 1.62, Ubuntu 16.04 Lts, chrome