Hi all!
For a project I’m doing I need to recreate a 3d scene from images taken from blender. I use the rendered sequence with perspective for the textures and I use the z-buffer to get the depth information. In this case I use the orthographic images. Now my problem is that from the depth information I create the 3d space, but to correctly apply the texture I have to do the perspective correction of the 3d data. Since blender does this too (when I select or deselect the orthographic projection option), I wonder if anyone knows the exact formulas that blender uses to do this calculation. Now i’m using these formulas. It seems that the values I use do not allow for a perfect fit of the images. I’ve tried searching in the source code too, but without luck. Does anyone knows which formulas I should use to correctly convert orthographic images to perspective ones?
thanks