Extracting high precision depth map from scene
Hello,
I'm new to using Vizard, and attempting to extract high-precision depth data from a scene. At the moment, to do this, I am using: Code:
depth = viz.addRenderTexture(format=viz.TEX_DEPTH_32) This allows me to save the values of the depth render texture to a numpy array... but I have a few questions:
Any guidance would be appreciated. Thanks, Joe |
The depth buffer on GPUs is non-linear, in order to provide greater precision to nearby objects.
You can convert a raw depth buffer value to linear and world units using the following code: Code:
z = |
Hi Jeff,
I forgot to reply to this at the time -- but thank you for your answer, it solved the issue for me. |
All times are GMT -7. The time now is 09:47 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC