Skip to content

Commit

Permalink
Merge pull request #2572 from alicevision/fix/scenePreview
Browse files Browse the repository at this point in the history
[blender] Adapt `ScenePreview`'s Blender script to pixel ratio
  • Loading branch information
cbentejac authored Oct 18, 2024
2 parents d296e6c + 9f41a75 commit 1bcfdc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshroom/nodes/blender/scripts/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def setupCamera(intrinsic, pose):
bpy.context.scene.render.pixel_aspect_x = float(intrinsic['pixelRatio'])

camData.sensor_width = float(intrinsic['sensorWidth'])
camData.lens = float(intrinsic['focalLength'])
camData.lens = float(intrinsic['focalLength']) / float(intrinsic['pixelRatio'])

#shift is normalized with the largest resolution
fwidth = float(intrinsic['width'])
Expand Down

0 comments on commit 1bcfdc1

Please sign in to comment.