From a99d4eaa1c935b5b34e8bb326bd8565efd3662b1 Mon Sep 17 00:00:00 2001 From: matejsoukup Date: Wed, 4 Jul 2018 08:33:36 +0200 Subject: [PATCH] Partial panorama default cube size fix Change computation of cube size - taking haov into account --- utils/multires/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/multires/generate.py b/utils/multires/generate.py index 0f1968f..2d395cb 100755 --- a/utils/multires/generate.py +++ b/utils/multires/generate.py @@ -121,7 +121,7 @@ if vaov == -1: if args.cubeSize != 0: cubeSize = args.cubeSize else: - cubeSize = 8 * int(origWidth / math.pi / 8) + cubeSize = 8 * int((360 / haov) * origWidth / math.pi / 8) tileSize = min(args.tileSize, cubeSize) levels = int(math.ceil(math.log(float(cubeSize) / tileSize, 2))) + 1 origHeight = str(origHeight)