Skip to content

Commit

Permalink
Increase render resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanspumpkin committed Sep 26, 2024
1 parent 7fc45c8 commit 214d09d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion loco-graphics-helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"name": "Loco Graphics Helper",
"description": "Render tool to replicate Locomotion graphics (based on RCT Graphics Helper)",
"author": "Olivier Wervers & OpenLoco Team",
"version": (0, 1, 5),
"version": (0, 1, 6),
"blender": (2, 79, 0),
"location": "Render",
"support": "COMMUNITY",
Expand Down
4 changes: 2 additions & 2 deletions loco-graphics-helper/operators/init_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class Init(bpy.types.Operator):

def execute(self, context):
# Setup render settings
context.scene.render.resolution_x = 96
context.scene.render.resolution_y = 96
context.scene.render.resolution_x = 128
context.scene.render.resolution_y = 128
context.scene.render.resolution_percentage = 100

# Output
Expand Down
2 changes: 1 addition & 1 deletion loco-graphics-helper/operators/render_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def execute(self, context):
(1920 / context.scene.render.resolution_x)

bpy.data.cameras["Camera"].shift_x = -0.000345 * \
96 / context.scene.render.resolution_x
128 / context.scene.render.resolution_x

def finish():
general_props.rendering = False
Expand Down

0 comments on commit 214d09d

Please sign in to comment.