We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d296e6c + 9f41a75 commit 1bcfdc1Copy full SHA for 1bcfdc1
meshroom/nodes/blender/scripts/preview.py
@@ -102,7 +102,7 @@ def setupCamera(intrinsic, pose):
102
bpy.context.scene.render.pixel_aspect_x = float(intrinsic['pixelRatio'])
103
104
camData.sensor_width = float(intrinsic['sensorWidth'])
105
- camData.lens = float(intrinsic['focalLength'])
+ camData.lens = float(intrinsic['focalLength']) / float(intrinsic['pixelRatio'])
106
107
#shift is normalized with the largest resolution
108
fwidth = float(intrinsic['width'])
0 commit comments