I'm trying to make a dynamic kaleidoscope background using one source image and twelve masking images.
The way it's supposed to work: AlphaMasks form 6 pairs of 2 equal triangles each, positioned and rotated to form a hexagon. Inside these AlphaMasks, images perform a slow rotation, alternating between clockwise and counter-clockwise, imitating a kaleidoscope.
The thing is, it isn't working. When I show the images separately, they rotate around the screen's center as intended. But as soon as I feed them to the AlphaMasks, they start bouncing around inside the Masks. I've tried everything I could think of, but no success.
Here's the code:
Code: Select all
image testimage_anim01:
"images/test_kal_1.png"
xzoom -1.0 # horizontal flip for symmetry
rotate_pad False
truecenter
linear 60.0 rotate -360.0 # counter-clockwise rotation for symmetry
subpixel True
image testimage_anim02:
"images/test_kal_1.png"
rotate_pad False
truecenter
rotate 60.0 # initial rotation
linear 60.0 rotate 360.0
subpixel True
image testimage_anim03:
"images/test_kal_1.png"
xzoom -1.0
rotate_pad False
truecenter
rotate 60.0
linear 60.0 rotate -360.0
subpixel True
image testimage_anim04:
"images/test_kal_1.png"
rotate_pad False
truecenter
rotate 120.0
linear 60.0 rotate 360.0
subpixel True
image testimage_anim05:
"images/test_kal_1.png"
xzoom -1.0
rotate_pad False
truecenter
rotate 120.0
linear 60.0 rotate -360.0
subpixel True
image testimage_anim06:
"images/test_kal_1.png"
rotate_pad False
truecenter
rotate 180.0
linear 60.0 rotate 360.0
subpixel True
image testimage_anim07:
"images/test_kal_1.png"
xzoom -1.0
rotate_pad False
truecenter
rotate 180.0
linear 60.0 rotate -360.0
subpixel True
image testimage_anim08:
"images/test_kal_1.png"
rotate_pad False
truecenter
rotate 240.0
linear 60.0 rotate 360.0
subpixel True
image testimage_anim09:
"images/test_kal_1.png"
xzoom -1.0
rotate_pad False
truecenter
rotate 240.0
linear 60.0 rotate -360.0
subpixel True
image testimage_anim10:
"images/test_kal_1.png"
rotate_pad False
truecenter
rotate 300.0
linear 60.0 rotate 360.0
subpixel True
image testimage_anim11:
"images/test_kal_1.png"
xzoom -1.0
rotate_pad False
truecenter
rotate 300.0
linear 60.0 rotate -360.0
subpixel True
image testimage_anim12:
"images/test_kal_1.png"
rotate_pad False
truecenter
linear 60.0 rotate 360.0
subpixel True
image duod01:
AlphaMask("testimage_anim01", "images/bg/kal_bg_alphamask_duodecant01.png")
truecenter
subpixel True
image duod02:
AlphaMask("testimage_anim02", "images/bg/kal_bg_alphamask_duodecant02.png")
truecenter
subpixel True
image duod03:
AlphaMask("testimage_anim03", "images/bg/kal_bg_alphamask_duodecant03.png")
truecenter
subpixel True
image duod04:
AlphaMask("testimage_anim04", "images/bg/kal_bg_alphamask_duodecant04.png")
truecenter
subpixel True
image duod05:
AlphaMask("testimage_anim05", "images/bg/kal_bg_alphamask_duodecant05.png")
truecenter
subpixel True
image duod06:
AlphaMask("testimage_anim06", "images/bg/kal_bg_alphamask_duodecant06.png")
truecenter
subpixel True
image duod07:
AlphaMask("testimage_anim07", "images/bg/kal_bg_alphamask_duodecant07.png")
truecenter
subpixel True
image duod08:
AlphaMask("testimage_anim08", "images/bg/kal_bg_alphamask_duodecant08.png")
truecenter
subpixel True
image duod09:
AlphaMask("testimage_anim09", "images/bg/kal_bg_alphamask_duodecant09.png")
truecenter
subpixel True
image duod10:
AlphaMask("testimage_anim10", "images/bg/kal_bg_alphamask_duodecant10.png")
truecenter
subpixel True
image duod11:
AlphaMask("testimage_anim11", "images/bg/kal_bg_alphamask_duodecant11.png")
truecenter
subpixel True
image duod12:
AlphaMask("testimage_anim12", "images/bg/kal_bg_alphamask_duodecant12.png")
truecenter
subpixel True
There are a few more problems with this thing, but let's keep it to one question for now.
I've attached two screenshots: one shows a test animation doing what it's supposed to, the other shows the sorry state of the kaleidoscope.
Any help is appreciated. Thanks!