# I want to ask a question. When I use the shadow parameter, the ground in the scene disappears,

**URL:** <https://forum.babylonjs.com/t/i-want-to-ask-a-question-when-i-use-the-shadow-parameter-the-ground-in-the-scene-disappears/38715>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [March 3, 2023, 1:09pm UTC](https://forum.babylonjs.com/t/i-want-to-ask-a-question-when-i-use-the-shadow-parameter-the-ground-in-the-scene-disappears/38715 "2023-03-03T13:09:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![11126](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/11126/32/14839_2.png) [@11126](https://forum.babylonjs.com/u/11126)\
**Post date:** [March 3, 2023, 1:09pm UTC](https://forum.babylonjs.com/t/i-want-to-ask-a-question-when-i-use-the-shadow-parameter-the-ground-in-the-scene-disappears/38715/1 "2023-03-03T13:09:08Z")

</div>

I want to ask a question. When I use the shadow parameter, the ground in the scene disappears, but the ground appears when I set groundMesh.receiveShadows to false. I wonder if the ground created by CreateGroundFromHeightMap cannot use this method. , or where am I going wrong?  
var light1 = new BABYLON. DirectionalLight(“dir01”, new BABYLON. Vector3(0, -1, -0.3), scene);  
const groundMesh = BABYLON.Mesh.CreateGroundFromHeightMap(“ground”, “static/img/heightmap.png”, 1000, 2233, 100, 0, 70, scene, false);  
groundMesh.position.x=0  
groundMesh.position.y=0  
groundMesh.position.z=0  
var sphere = BABYLON. Mesh. CreateSphere(“Sphere”, 160, 3, scene);  
var shadowGenerator = new BABYLON. ShadowGenerator(1024, light1);  
shadowGenerator.getShadowMap().renderList.push(sphere);  
shadowGenerator.useBlurExponentialShadowMap = true;  
shadowGenerator. useKernelBlur = true;  
shadowGenerator. blurKernel = 64;

```
     groundMesh. receiveShadows = true;

```

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [March 3, 2023, 1:19pm UTC](https://forum.babylonjs.com/t/i-want-to-ask-a-question-when-i-use-the-shadow-parameter-the-ground-in-the-scene-disappears/38715/2 "2023-03-03T13:19:56Z")

</div>

There is nothing different in the ground created from heightmap and it receives shadows just fine: [Ground From Height Map Examples | Babylon.js Playground (babylonjs.com)](https://playground.babylonjs.com/#LQ4LI1#402). You should probably first check your console to see if there aren’t any errors. Otherwise, you should share a playground with us so we can properly see your code.
