Question by
Sasorihell · Apr 18, 2019 at 08:10 AM ·
vrimagedepth360-degreesstereoscopic
How can i dump stereoscop depth map to PNG?,Capture stereoscopic 360 depth to PNG
Hello everyone, I'm a new guy using unity and I want to know, how can I dump stereoscopic depth map to png? Currently I'm able to render colors stereoscopic following this tutorial, and dump then to PNG. To depth frame I set the depthTextureMode from my camera to DepthTextureMode.Depth and apply a shader, inside of the method onRenderImage using Graphics.Blit(source, dest, mat). On the game window is shown the depth texture correctly. When I call the Graphics.Blit() and camera.RenderToCubeMap() and convert to equirect and ReadPixels from a texture2D object the png is totaly white. Someone can help me please?
Comment