Skip to content

Commit

Permalink
bug fix for rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
shunsukesaito committed May 11, 2020
1 parent 216f7a6 commit 95c6a10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/render_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,9 @@ def rotateBand2(x, R):

return dst

def render_prt_ortho(out_path, folder_name, subject_name, shs, rndr, rndr_uv, angl_step=4, n_light=1, pitch=[0]):
cam = Camera(width=512, height=512)
cam.ortho_ratio = 0.4
def render_prt_ortho(out_path, folder_name, subject_name, shs, rndr, rndr_uv, im_size, angl_step=4, n_light=1, pitch=[0]):
cam = Camera(width=im_size, height=im_size)
cam.ortho_ratio = 0.4 * (512 / im_size)
cam.near = -100
cam.far = 100
cam.sanity_check()
Expand Down Expand Up @@ -287,4 +287,4 @@ def render_prt_ortho(out_path, folder_name, subject_name, shs, rndr, rndr_uv, an
if args.input[-1] == '/':
args.input = args.input[:-1]
subject_name = args.input.split('/')[-1][:-4]
render_prt_ortho(args.out_dir, args.input, subject_name, shs, rndr, rndr_uv, 1, 1, pitch=[0])
render_prt_ortho(args.out_dir, args.input, subject_name, shs, rndr, rndr_uv, args.size, 1, 1, pitch=[0])

0 comments on commit 95c6a10

Please sign in to comment.