Browse Source

Partial panorama default cube size fix

Change computation of cube size - taking haov into account
pull/632/head
matejsoukup 6 years ago
committed by Matthew Petroff
parent
commit
a99d4eaa1c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/multires/generate.py

+ 1
- 1
utils/multires/generate.py View File

@@ -121,7 +121,7 @@ if vaov == -1:
if args.cubeSize != 0: if args.cubeSize != 0:
cubeSize = args.cubeSize cubeSize = args.cubeSize
else: else:
cubeSize = 8 * int(origWidth / math.pi / 8)
cubeSize = 8 * int((360 / haov) * origWidth / math.pi / 8)
tileSize = min(args.tileSize, cubeSize) tileSize = min(args.tileSize, cubeSize)
levels = int(math.ceil(math.log(float(cubeSize) / tileSize, 2))) + 1 levels = int(math.ceil(math.log(float(cubeSize) / tileSize, 2))) + 1
origHeight = str(origHeight) origHeight = str(origHeight)


Loading…
Cancel
Save