From 7815c13ba42c1d862d5753874b2cfcf006714367 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 6 Nov 2011 10:01:26 -0500 Subject: [PATCH] Fix camera offset WRT flam3 --- cuburn/code/iter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cuburn/code/iter.py b/cuburn/code/iter.py index 8a20977..779d8bd 100644 --- a/cuburn/code/iter.py +++ b/cuburn/code/iter.py @@ -81,12 +81,12 @@ def precalc_camera(info, pcam): {{pre_cam._set('xx')}} = scale * rotcos; {{pre_cam._set('xy')}} = scale * -rotsin; {{pre_cam._set('xo')}} = scale * (rotsin * ceny - rotcos * cenx) - + {{0.5 * info.width + info.gutter}} + ditherx; + + {{0.5 * (info.width + info.gutter + 1)}} + ditherx; {{pre_cam._set('yx')}} = scale * rotsin; {{pre_cam._set('yy')}} = scale * rotcos; {{pre_cam._set('yo')}} = scale * -(rotsin * cenx + rotcos * ceny) - + {{0.5 * info.height + info.gutter}} + dithery; + + {{0.5 * (info.height + info.gutter + 1)}} + dithery; """).substitute(locals()))