# 3d model rendering takes time

**URL:** <https://community.cesium.com/t/3d-model-rendering-takes-time/5054>\
**Category:** CesiumJS\
**Created:** [January 19, 2017, 10:03am UTC](https://community.cesium.com/t/3d-model-rendering-takes-time/5054 "2017-01-19T10:03:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mussb\_Abulhassen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mussb_abulhassen/32/31685_2.png) [@Mussb\_Abulhassen](https://community.cesium.com/u/Mussb_Abulhassen)\
**Post date:** [January 19, 2017, 10:03am UTC](https://community.cesium.com/t/3d-model-rendering-takes-time/5054/1 "2017-01-19T10:03:36Z")

</div>

HI there, I’m a cartography student and i managed to create 213 binary gltf’s (2MB each) however when i render (90 of them at once my (laptop) crashes, **i wonder if it will work normally in a server (the model is totally around 500 MB)?** i have to submit the project soon so i don’t think i have enough time to (understand\implement) 3Dtiles approach -i’m a cartographer after all 🙂 -.

 ![Auto Generated Inline Image 1.png](https://global.discourse-cdn.com/cesium/original/1X/d969c60faa369f59fed24639775db0a03f33088c.png)  
90 models( i have to render them 30 one at time)

my other problem is that the buildings aren’t defined properly, some buildings are defined while others are not, i can’t implement my picking function, i suspect it’s something with the .glb. i attached 2 models: id\_71 is defined and picked while id\_30 is not.

prototype code:

``

[id\_71.glb](https://community.cesium.com/uploads/short-url/dqu6TC4P25S7sEMvioWLSkIM05H.glb) (2.63 MB)

[id\_30.glb](https://community.cesium.com/uploads/short-url/utoaE6wh5qMn8VRIHelX9IWfEXZ.glb) (2.86 MB)

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [January 19, 2017, 2:39pm UTC](https://community.cesium.com/t/3d-model-rendering-takes-time/5054/2 "2017-01-19T14:39:12Z")

</div>

Hello,

2MB sounds very large for those buildings look. Even our Cesium\_Air.glb file is only 610KB.

These articles might have some helpful information for how to optimize your models:

> **[Building a WebGL Santa with Cesium and glTF | cesium.com](https://cesium.com/blog/2013/12/23/building-a-webgl-santa-with-cesium-and-gltf/)**
>
> Once again, NORAD’s santa tracker is built on our WebGL-based Cesium engine. This year, we added an animated 3D model for Santa and his sled and reindeer us...

> **[glTF Tips for Artists | cesium.com](https://cesium.com/blog/2014/12/15/gltf-tips-for-artists/)**
>
> This is a guest post by Branden Coker, an artist from AGI with many things to his credit, including the glTF model for NORAD Tracks Santa. Special thanks to ...

Once the individual models are optimized, you can try to combine them so you have fewer models overall to load in. You could probably put 15 or so building together in each file.

Best,

Hannah

---

<div class="post-metadata">

**Author:** ![Mussb\_Abulhassen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mussb_abulhassen/32/31685_2.png) [@Mussb\_Abulhassen](https://community.cesium.com/u/Mussb_Abulhassen)\
**Post date:** [January 19, 2017, 3:09pm UTC](https://community.cesium.com/t/3d-model-rendering-takes-time/5054/3 "2017-01-19T15:09:25Z")

</div>

Hi Hanna,  
Thanks for the reply, you guys are cool, i guess you’re right i have downsized the images and they are around 500 KB each now.

I’ll re-convert the COLLADA’s and see the output.

with regards

Mussab

---

<div class="post-metadata">

**Author:** ![Mussb\_Abulhassen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mussb_abulhassen/32/31685_2.png) [@Mussb\_Abulhassen](https://community.cesium.com/u/Mussb_Abulhassen)\
**Post date:** [January 19, 2017, 5:10pm UTC](https://community.cesium.com/t/3d-model-rendering-takes-time/5054/4 "2017-01-19T17:10:33Z")

</div>

Hi Hannah,

so the model works fine i have rendered 120 at ones and it works fine, however the problem with houses remain some are (defined /pickable) and othes are not, some buildings facades are not defined as well this building (id\_7 ) have some facades that are not clickable.

with regads

Mussab

[id\_7.glb](https://community.cesium.com/uploads/short-url/n6je9HmWk0Fp5r00QXs9s0J9Gl0.glb) (538 KB)

---

<div class="post-metadata">

**Author:** ![sean\_lilley](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/sean_lilley/32/2083_2.png) [@sean\_lilley](https://community.cesium.com/u/sean_lilley)\
**Post date:** [January 20, 2017, 1:47am UTC](https://community.cesium.com/t/3d-model-rendering-takes-time/5054/5 "2017-01-20T01:47:20Z")

</div>

Looking at just id\_7.glb alone, the model has two materials and one of them sets transparency to 0. The model itself however does not set the proper blend states for transparency so that part of the model is still rendered, but in the pick pass the transparent section will not be pickable. If you set the transparency to 1 the picking works.
