# 3D tiles building shadow become lines

**URL:** <https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248>\
**Category:** CesiumJS\
**Created:** [April 4, 2020, 10:48am UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248 "2020-04-04T10:48:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ohad\_Manor](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ohad_manor/32/2026_2.png) [@Ohad\_Manor](https://community.cesium.com/u/Ohad_Manor)\
**Post date:** [April 4, 2020, 10:48am UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/1 "2020-04-04T10:48:45Z")

</div>

Hi,

I’m using last version 1.68,

can you explain me why the shadow on the building look like that?

in previous version it looks fine

thanks,

 ![image](https://global.discourse-cdn.com/cesium/original/2X/0/0693a572eea17b1e41ec9272150e4ef0f35ee2bf.jpeg)

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [April 7, 2020, 4:59pm UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/2 "2020-04-07T16:59:25Z")

</div>

Are you comparing against 1.67? I’m seeing similar artifacts when testing on [this Sandcastle](https://sandcastle.cesium.com/index.html#c=7Vp9bxo5E/8qvvwD6MgCgTQkDdGTAHdBR5Kq0DtVTVSZXcP6qVmv1l4Izynf/Rl73xcWSIrudKcitWTX45nxvPxmxqJWQ9dI0LnLCLLInCM+Rc0eGlNGBJoSLH2PIJea36gzQ0sqbWTzBfEQdiwkCCOmRBNi4wXl3qNTq6EbnzJL0VpYYmRy35NErBTX+89d9OASp6cWXO5JzC6QLaV7Uastl8uG4axMY8YXNUElqVmcSlmjDpUUS7ogota0jichc8PFM/LoLLCHFpQsQZ0OcsgSdYmg/tz4Xb8rl0z92OWOxNQhXqmK/nx0EHwk8Tx49cHjC2oR7yLaaHp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Q1mAyIFeckeSuidB6xcla5claPNtibZSuj8IiJPym8zR/6RhIjXNRyU3tTfuxtawfgNRPFum1zKmfb+TB+yOHbTeyP3rh5ofI83bR5q1YrzJiYpos++2M6dWhvXLKyanv3lu2pxkGUa5wMxcDZkMQjcrN8jzanGa5/vvDbvzN1Cf+8Phwx+HGt3y0Pyvm9o2oPZaIKy35zmK2BPxwjawzu/+q5H67x4YDzYurtnxTTPiFrcU5fYbh8md42Ah9GwAkkLMqBZEYeXtPUOmS30tuO3W5uWNQ+weaJi6j/8xv/6YX3/Mr2vCh9yZUelbZF/hLNpwCOEwnb5Kdkh/ANFB872vYFtTH0Bs9DOnsPcv9xmjruDUquyrSsjh9rs1OsgFhuoVj6pHl3ocuQo4/IfO1YWF+glP2TBqksxhYpJE1CY+nEoaphBq72Ut2qShjVoxnMQ/XXs8ioFm6jM2ov8jMcalt4X4F04PisRuXIXAaRjGZQ0e13dJztkEeymO/wc) in 1.68 and in 1.67.

You can improve shadow rendering by increasing the size of the shadow map (`viewer.scene.shadowMap`), see: [https://cesium.com/docs/cesiumjs-ref-doc/ShadowMap.html](https://cesium.com/docs/cesiumjs-ref-doc/ShadowMap.html).

If you’re able to reproduce this artifact with a Sandcastle that’d help us investigate.

---

<div class="post-metadata">

**Author:** ![Ohad\_Manor](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ohad_manor/32/2026_2.png) [@Ohad\_Manor](https://community.cesium.com/u/Ohad_Manor)\
**Post date:** [April 7, 2020, 5:21pm UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/3 "2020-04-07T17:21:49Z")

</div>

well, I open a bug in cesium ion for that . . .

 ![image](https://global.discourse-cdn.com/cesium/original/2X/b/b198420ef10127c5d2cd16c52c61da8c3e53cb46.png)

---

<div class="post-metadata">

**Author:** ![Ohad\_Manor](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ohad_manor/32/2026_2.png) [@Ohad\_Manor](https://community.cesium.com/u/Ohad_Manor)\
**Post date:** [April 7, 2020, 5:26pm UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/4 "2020-04-07T17:26:48Z")

</div>

I compare it to 1.56 (we do huge jumpung).

and I increase the shadow map to 20480 (x10 time from the defult) and still I get this.

---

<div class="post-metadata">

**Author:** ![Ohad\_Manor](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ohad_manor/32/2026_2.png) [@Ohad\_Manor](https://community.cesium.com/u/Ohad_Manor)\
**Post date:** [April 7, 2020, 5:28pm UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/5 "2020-04-07T17:28:38Z")

</div>

And yes I can see the same problem here:

 ![image](https://global.discourse-cdn.com/cesium/original/2X/8/85cd01c09ec1515f1a232d87987ec8122a1fef25.png)

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [April 8, 2020, 4:52pm UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/6 "2020-04-08T16:52:04Z")

</div>

I can still see the same artifacts in 1.56. The difference is that it looks like the shadows used to be a lot softer. You can set it to appear as it used by modifying the darkness property. Try: `viewer.scene.shadowMap.darkness = 0.8;`.

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [April 8, 2020, 4:54pm UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/7 "2020-04-08T16:54:48Z")

</div>

For the tileset that’s crashing on Cesium ion - that seems to have tiles with an invalid material (specifically missing texture coordinates). Was this tiled with the Cesium ion on-premise CLI?

---

<div class="post-metadata">

**Author:** ![Ohad\_Manor](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ohad_manor/32/2026_2.png) [@Ohad\_Manor](https://community.cesium.com/u/Ohad_Manor)\
**Post date:** [April 9, 2020, 7:37am UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/8 "2020-04-09T07:37:58Z")

</div>

Hi,

I will try that and let you know.

Ohad

---

<div class="post-metadata">

**Author:** ![Ohad\_Manor](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ohad_manor/32/2026_2.png) [@Ohad\_Manor](https://community.cesium.com/u/Ohad_Manor)\
**Post date:** [April 9, 2020, 7:40am UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/9 "2020-04-09T07:40:46Z")

</div>

No,

We create the 3D tiles from OSM using our own tools we develop,

And yes you are right there is problem with texture missing. I’ll fix that and upload again.

thanks

Ohad

---

<div class="post-metadata">

**Author:** ![Ohad\_Manor](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/ohad_manor/32/2026_2.png) [@Ohad\_Manor](https://community.cesium.com/u/Ohad_Manor)\
**Post date:** [April 12, 2020, 1:07pm UTC](https://community.cesium.com/t/3d-tiles-building-shadow-become-lines/9248/10 "2020-04-12T13:07:40Z")

</div>

Omar Hi,

I played around with that and I figure the problem,  
3D Tiles without normals get that problem (the shadow is not smooth).  
when I add normal to the tiles they become very dark, I know that you will responce that I need to add ‘lightColor’ and ‘imageBasedLightingFactor’ so it is worng! because it damage 3d tiles with real image. so, if I have tiles that some of the building contains image and some are not it will not work.

I think you should look again on the changes you done with the normals.

Ohad
