I want to reconstruct a scene from a depthmap using OpenGL. The depthmap is generated using Blender. Now I want to reproject the depthmap to 3D using the following formulas:
Z = focallength * baseline / depth
X = u*Z / focallength
Y = v*Z / focallength
u and v are clear and I got the focal length from blenders python API. Now I am stuck with the baseline. The baseline is the length of the distance-vector between the two cameras capturing the scene. In my setup I do not have a 2nd camera. I only got the one blender camera at position (0,1,10).