Skip to content

Commit

Permalink
Merge pull request #2079 from alicevision/mug/pixelRatio
Browse files Browse the repository at this point in the history
Support pixel aspect ratio (no UI)
  • Loading branch information
cbentejac committed Jul 3, 2023
2 parents a479af2 + 56f77e2 commit a69104e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion meshroom/nodes/aliceVision/CameraInit.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def createViewpointsFile(self, node, additionalViews=()):
view['metadata'] = json.loads(view['metadata'])

sfmData = {
"version": [1, 2, 2],
"version": [1, 2, 5],
"views": views + newViews,
"intrinsics": intrinsics,
"featureFolder": "",
Expand Down
1 change: 1 addition & 0 deletions meshroom/nodes/blender/scripts/preview.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def setupCamera(intrinsic, pose):

bpy.context.scene.render.resolution_x = int(intrinsic['width'])
bpy.context.scene.render.resolution_y = int(intrinsic['height'])
bpy.context.scene.render.pixel_aspect_x = float(intrinsic['pixelRatio'])

camData.sensor_width = float(intrinsic['sensorWidth'])
camData.lens = float(intrinsic['focalLength'])
Expand Down

0 comments on commit a69104e

Please sign in to comment.