Hello

I noticed something rather odd, which may explain my confusion with DOD/ROI and sampler space.

My system Mac OS X 10.5.1, Intel MBP 2.33 with QT 7.3, I have the following behaviour within QC.

Step 1:

Create a Core Image Kernel with the following code:



kernel vec4 v001AlphaBlend(sampler image1, sampler image2, sampler mask)
{
// first we find out which image extent is the largest - we must do this since CIKL does not
        // normalize sampler coordinates for us like GLSL does.
        // We need to know which sampler contained that largest size..
        
        vec2 maxSize = max(samplerSize(image1), samplerSize(image2));
        maxSize = max(maxSize, samplerSize(mask));
        
// sample based on normalized coordinates and the image samplers native dimensions
        
vec4 img1 = sample(image1, samplerCoord(image1)/maxSize * samplerSize(image1)); vec4 img2 = sample(image2, samplerCoord(image2)/maxSize * samplerSize(image2)); vec4 msk = sample(mask, samplerCoord(mask)/maxSize * samplerSize(mask));
        
        // mix based on masks alpha value       
        return mix(img1, img2, msk.a);  
        //return img1;
}

Step 2:
Pass three movies into the input, preferably those with different sizes, for me, my mask movie, which contains an alpha channel, is smaller than image input 1 and 2, and connect to a billboard.

Step 3:
Now, select the smaller movies playback patch. Enable/disable color correction. With my system, Disabling Color Correction seems to supply different coordinates to my CIKernel. The output is no longer within the same place when color correction is enabled:

No CC:

<<inline: NoCC.jpg>>



With CC:

<<inline: WithCC.jpg>>




Can anyone verify this? Is my Kernel code incorrect? ive been going crazy and then noticed I had disable CC checked on my mask movie, and then things started to make sense...

Thanks,
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to