# I used the depth map to pick up the coordinates, but it didn't work

**URL:** <https://forum.babylonjs.com/t/i-used-the-depth-map-to-pick-up-the-coordinates-but-it-didnt-work/48361>\
**Category:** Questions\
**Tags:** depth\
**Created:** [February 28, 2024, 11:31am UTC](https://forum.babylonjs.com/t/i-used-the-depth-map-to-pick-up-the-coordinates-but-it-didnt-work/48361 "2024-02-28T11:31:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![zhangyahan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/zhangyahan/32/31789_2.png) [@zhangyahan](https://forum.babylonjs.com/u/zhangyahan)\
**Post date:** [February 28, 2024, 12:54pm UTC](https://forum.babylonjs.com/t/i-used-the-depth-map-to-pick-up-the-coordinates-but-it-didnt-work/48361/5 "2024-02-28T12:54:24Z")

</div>

In this example, the scene. pick method is used to pick up the scene coordinates when the mouse is moving. Considering the performance of scene. pick, I used depth maps to calculate the scene coordinates. I have seen this [GPU picking point and normal example](https://forum.babylonjs.com/t/gpu-picking-point-and-normal-example/40965) And I only need to obtain the position, no normals. So I calculated coordinates from the depth map based on the code in the example, but it was not successful.

---

_[View the full topic](https://forum.babylonjs.com/t/i-used-the-depth-map-to-pick-up-the-coordinates-but-it-didnt-work/48361)._
