Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
27th December 2009, 09:34 | #1 | Link |
Registered User
Join Date: Mar 2009
Posts: 18
|
Strange color artifacts with Overlay()
Consider this code, which doesn't make sense but I simplified larger code as I could:
Code:
file = AviSource("clip.avi", audio=false) drop = ImageSource("empty.png", pixel_type="rgb32") y = Height(file) Overlay(BlankClip(file, Height = 7*y, Width = Width(file), color=$ffffff), drop) Layer(Trim(file,434,0),"add",256,0,0) Overlay(drop, 0, 0, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Layer(Trim(file,434,0),"add",256,0,y) Overlay(drop, 0, 0, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Layer(Trim(file,434,0),"add",256,0,2*y) Overlay(drop, 0, 0, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Layer(Trim(file,434,0),"add",256,0,3*y) Overlay(drop, 0, 0, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Layer(Trim(file,434,0),"add",256,0,4*y) Overlay(drop, 0, 0, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Layer(Trim(file,434,0),"add",256,0,5*y) Overlay(drop, 0, 0, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Layer(Trim(file,434,0),"add",256,0,6*y) Overlay(drop, 0, 0, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Result: Now, if we use this only once: Code:
Layer(Trim(file,434,0),"add",256,0,0) Overlay(drop, 6, 3, mask=ShowAlpha(Mask(drop, drop.ShowAlpha(pixel_type="rgb32")))) Can someone tell me why is this happening? Thanks Last edited by 2E7AH; 27th December 2009 at 09:37. |
Thread Tools | Search this Thread |
Display Modes | |
|
|