# Is it possible to develop Relight by Clipdrop using only three.js?

**URL:** <https://discourse.threejs.org/t/is-it-possible-to-develop-relight-by-clipdrop-using-only-three-js/53258>\
**Category:** Questions\
**Tags:** lighting\
**Created:** [June 27, 2023, 6:17am UTC](https://discourse.threejs.org/t/is-it-possible-to-develop-relight-by-clipdrop-using-only-three-js/53258 "2023-06-27T06:17:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mariam](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Mariam](https://discourse.threejs.org/u/Mariam)\
**Post date:** [June 27, 2023, 6:17am UTC](https://discourse.threejs.org/t/is-it-possible-to-develop-relight-by-clipdrop-using-only-three-js/53258/1 "2023-06-27T06:17:55Z")

</div>

I saw that Clipdrop used three.js to implement Relight effect on their app. I want to implement that lighting effect as well, is it possible to do it using only three.js? (if i already have an image depth map).

P.S. but I don’t want to use image 3D model like in three.js example for pointlights only image depth map as described on Clipdrop [blog](https://clipdrop.co/blog/relight-technicalities)

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [June 27, 2023, 7:13am UTC](https://discourse.threejs.org/t/is-it-possible-to-develop-relight-by-clipdrop-using-only-three-js/53258/2 "2023-06-27T07:13:11Z")

</div>

You could try just applying the depth map to a PlaneGeometry with MeshStandardMaterial, as a [.displacementMap](https://threejs.org/docs/index.html?q=meshsta#api/en/materials/MeshStandardMaterial.displacementMap) 🤔

---

<div class="post-metadata">

**Author:** ![Antonio](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/antonio/32/27527_2.png) [@Antonio](https://discourse.threejs.org/u/Antonio)\
**Post date:** [June 28, 2023, 6:56pm UTC](https://discourse.threejs.org/t/is-it-possible-to-develop-relight-by-clipdrop-using-only-three-js/53258/3 "2023-06-28T18:56:43Z")

</div>

Yep, displacing vertices in a dense mesh would be enough. Jaume Sanchez did this for demonstrating android depth capture some time ago [GitHub - spite/android-lens-blur-depth-extractor](https://github.com/spite/android-lens-blur-depth-extractor)
