Skip to content

Commit

Permalink
dump version
Browse files Browse the repository at this point in the history
  • Loading branch information
SAM-tak committed Aug 14, 2022
1 parent b1f7659 commit 3330e01
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 13 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"name": "eeVR",
"description": "Render in different projections using Eevee engine",
"author": "EternalTrail, SAMtak",
"version": (0, 5, 0),
"version": (0, 5, 1),
"blender": (3, 0, 0),
"location": "View3D > Tool Tab (Available when EEVEE or Workbench)",
"warning": "This addon is still in early alpha, may break your blend file!",
Expand Down Expand Up @@ -176,6 +176,7 @@ def draw(self, context):
col.prop(props, 'HFOV360')
col.prop(props, 'VFOV')
col.prop(props, 'stitchMargin')
col.prop(props, 'frontViewOverscan')
col = layout.column()
col.prop(props, 'noSidePlane')
col.enabled = props.IsEnableNoSidePlane()
Expand Down Expand Up @@ -271,6 +272,17 @@ class Properties(bpy.types.PropertyGroup):
description="Margin for Seam Blending in degrees",
)

frontViewOverscan: bpy.props.FloatProperty(
name="Front View Overscan",
subtype='PERCENTAGE',
precision=0,
step=100,
default=25,
min=0,
max=100,
description="Overscan Rate for Front View Rendering",
)

noSidePlane: bpy.props.BoolProperty(
name="No Side Plane",
default=False,
Expand Down
3 changes: 2 additions & 1 deletion renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ def __init__(self, context, is_animation = False, folder = ''):
side_resolution = trans_resolution(base_resolution, sidefrac, 1, 0, vmargin)
side_angle = pi/2 + ((2 * stitch_margin) if vmargin > 0.0 else 0.0)
side_shift_scale = 1 / (1 + 2 * vmargin)
fb_resolution = trans_resolution(base_resolution, 1, 1, extrusion+hmargin, extrusion+vmargin)
fb_scale = 1 + max(0, (props.frontViewOverscan / 100.0))
fb_resolution = trans_resolution(base_resolution, fb_scale, fb_scale, extrusion+hmargin, extrusion+vmargin)
fb_angle = (base_angle if no_side_plane else pi/2) + 2 * stitch_margin
self.camera_settings = {
'top': (0.0, 0.5*(tbfrac-1+intrusion), pi/2, tb_resolution[0], tb_resolution[1], aspect_ratio),
Expand Down

0 comments on commit 3330e01

Please sign in to comment.