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

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

You could try just applying the depth map to a PlaneGeometry with MeshStandardMaterial, as a .displacementMap :thinking:

1 Like

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

1 Like