Depth Map three.js

2019-07-24 11:25发布

Is there any way to obtain a depth map in three.js?

I am interested in producing something similar to what a Kinect would produce for a given scene.

I have come across a hacky way of using no colors and fog to mimic this but it would not be ideal because it would use two different scenes and would be variant to lighting. Another way to do this I believe would be to access the depth buffer but it appears this cannot be accessed through three.js.

1条回答
ら.Afraid
2楼-- · 2019-07-24 12:05

Yep. Try using MeshDepthMaterial.

查看更多
登录 后发表回答