Depth Map three.js

若如初见. 提交于 2019-12-23 23:17:43

问题


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:


Yep. Try using MeshDepthMaterial.



来源:https://stackoverflow.com/questions/13315935/depth-map-three-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!