- Home /
How to get the depth values of the camera view?
Hi, I'm a beginner of Unity. For some reason, I have to get the depth values of every pixel in the camera view.
Thanks to the website (http://williamchyr.com/2013/11/unity-shaders-depth-and-normal-textures/ ), I can get the depth image of the camera view.
However, I need more precise depth values (not 0~255) in c# and export the values as a .txt file.
How can I get the values? I had stuck in this problem for few days. Please help me. Thank you very much!
I can give you the idea for a solution, but it will be not the one you could run every frame 'cause computations will be really heavy. Why do you need it?
I need the depth values to train data. Can you share your idea? $$anonymous$$aybe I can try it. Thanks a lot!
Answer by aadilkhan9409 · May 15, 2019 at 07:56 AM
Must be thanks for the very nice post lookroblox hack game here and join the great fun.