Christoph,

the problem is that in the Core image patch you are fetching pixels from the 
image input (sampler) but with destination coordinates. This won’t work, 
because those can be different from the image coordinates that can be flipped 
by a transformation matrix. This works correctly:

kernel vec4 aaa(sampler image)
{
        // vec2 dest = destCoord();
        vec2 dest = samplerCoord(image);                // use coordinates from 
the sampler
        return (sample(image, dest)) * vec4(1.0, 0.0, 0.0, 1.0);
}

Not sure why this has worked before 5.1. Hope this helps.

best,

Achim Breidenbach
Boinx Software Ltd.


> On 15.11.2017, at 13:42, Christoph Vonrhein <c...@chv-electronics.de> wrote:
> 
> Hi Achim,
> 
> Sure.
> 
> Download it here:
> 
> http://www.chv-plugins.com/tmp/WhyFlip.zip 
> <http://www.chv-plugins.com/tmp/WhyFlip.zip>
> 
> I have applied an image to the input patch. That’s why it’s a little bit 
> bigger.
> 
> The top right patch (Extract R) can’t be any simpler. It’s rendered with a 
> Billboard on screen in the middle of the left side. You’ll see. It’s very 
> simple.
> 
> The number in the rendered output is the QC Runtime version. 5 is good, 5.1 
> flips.
> 
> 
> It works perfectly under OSX 10.7 with Quartz Composer Runtime version 5. 
> Under OSX 10.11 and up with QC Runtime 5.1 it flips the image vertically.
> 
> Christoph Vonrhein
> CHV-Plugins
> 
> 
> 
>> On Nov 15, 2017, at 2:24 AM, Achim Breidenbach <ac...@boinx.com 
>> <mailto:ac...@boinx.com>> wrote:
>> 
>> Hi Christoph,
>> 
>> Can you provide a small sample composition which demonstrate the effect?
>> 
>> Thanks!
>> 
>> Achim Breidenbach
>> Boinx Software Ltd.
>> 
>>> On 15 Nov 2017, at 04:49, Christoph Vonrhein <c...@chv-electronics.de 
>>> <mailto:c...@chv-electronics.de>> wrote:
>>> 
>>> Hi Apple,
>>> 
>>> here is a 100% Quartz Composer related question:
>>> 
>>> I have noticed that the “Core Image Filter” flips the rendered image 
>>> vertically depending on the runtime version of Quartz Composer.
>>> 
>>> Quartz Composer Version 5 renders normally (OSX 10.7). Version 5.1 flips 
>>> the image vertically (OSX 10.11 and up).
>>> 
>>> I don’t have a 10.8, 10.9 or 10.10 partition anymore. So I can’t tell from 
>>> which OSX version on this vertical flip happens. But to me it looks like 
>>> that the flip is related to the runtime version of Quartz Composer.
>>> 
>>> This flip happens even with the most simple Core Image Filter, were I only 
>>> extract Red (for example) from an image.
>>> 
>>> Can you give me some info about what might be the cause for this behavior? 
>>> 
>>> Thanks!
>>> Christoph Vonrhein
>>> 
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Quartzcomposer-dev mailing list      (Quartzcomposer-dev@lists.apple.com 
>>> <mailto:Quartzcomposer-dev@lists.apple.com>)
>>> Help/Unsubscribe/Update your Subscription:
>>> https://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com
>>>  
>>> <https://lists.apple.com/mailman/options/quartzcomposer-dev/achim%40boinx.com>
>>> 
>>> This email sent to ac...@boinx.com
>> 
> 

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

This email sent to arch...@mail-archive.com

Reply via email to