Re: CGFxPlug example problem
Re: CGFxPlug example problem
- Subject: Re: CGFxPlug example problem
- From: Darrin Cardani <email@hidden>
- Date: Tue, 28 Jun 2011 13:20:27 -0700
Martin,
I'll give those a try and see what happens. Do you have 2 video cards in your machine by any chance?
Darrin
On Jun 28, 2011, at 11:17 AM, Martin Baker wrote:
> Thanks Darrin
>
> The Motion project was using PAL DV anamorphic preset but I just tried with "Broadcast HD 720" at 59.95fps and "NTSC DV" presets and got the same result.
>
> BTW I'm running this in 64 bit.
>
> Martin
> www.digital-heaven.co.uk
> www.twitter.com/digitalheaven
> www.videospaceonline.com
> www.finalcutters.com
> ------------------------------------------------------
> Digital Heaven Ltd is registered in England and Wales
> Company registration number: 3628396
> Registered address: 55 Lynwood Drive, Worcester Park, Surrey KT4 7AE
> VAT registration number: GB 736 0989 03
>
> On 28 Jun 2011, at 19:00, Darrin Cardani wrote:
>
>> OK, I finally had a chance to look into it some more. I'm seeing 2 big problems when running in 32-bit. You need to tell Core Graphics that the byte order is 32-bit host order (in addition to pre-multiplied, alpha last). Then, after you've done the work, you also need to swizzle the color channels from RGBA (the only order that Core Graphics will accept for 32-bit rendering) to ARGB (the order that Motion expects to get back). I'm updating the sample right now. I'll send you an updated .mm file later today after I've checked it with some other people.
>>
>> One thing, though - I'm only seeing color channel order problems. I'm not seeing any garbage like you are. I wonder why? What size project are you testing with? I've tried 720p and NTSC DV, and don't see any issues. I had thought it might be a rowBytes issue, but I would have thought testing at DV size would have caught that.
>>
>> Darrin
>>
>> On Jun 27, 2011, at 12:16 PM, Martin Baker wrote:
>>
>>> Hi Darrin
>>>
>>> Any idea why this isn't working properly? Motion bug, SDK bug or another issue?
>>>
>>> thanks
>>>
>>> Martin Baker
>>> www.digital-heaven.co.uk
>>> www.twitter.com/digitalheaven
>>> www.videospaceonline.com
>>> www.finalcutters.com
>>> ------------------------------------------------------
>>> Digital Heaven Ltd is registered in England and Wales
>>> Company registration number: 3628396
>>> Registered address: 55 Lynwood Drive, Worcester Park, Surrey KT4 7AE
>>> VAT registration number: GB 736 0989 03
>>>
>>> On 24 Jun 2011, at 17:10, Darrin Cardani wrote:
>>>
>>>> Thanks for the update. I'll add the new info to the bug.
>>>>
>>>> Darrin
>>>>
>>>> On Jun 24, 2011, at 12:02 AM, Martin Baker wrote:
>>>>
>>>>> So I found out the error was specifying kCGImageAlphaPremultipliedFirst rather than kCGImageAlphaPremultipliedLast.
>>>>>
>>>>> This does stop the console errors but the result on screen is just a different type of garbage
>>>>> https://skitch.com/martinjbaker/fgppd/2ndtest
>>>>>
>>>>> Same garbage pixels issue happens with the Scrolling Rich Text Example as well.
>>>>>
>>>>> thanks
>>>>>
>>>>> Martin Baker
>>>>> www.digital-heaven.co.uk
>>>>> www.twitter.com/digitalheaven
>>>>> www.videospaceonline.com
>>>>> www.finalcutters.com
>>>>> ------------------------------------------------------
>>>>> Digital Heaven Ltd is registered in England and Wales
>>>>> Company registration number: 3628396
>>>>> Registered address: 55 Lynwood Drive, Worcester Park, Surrey KT4 7AE
>>>>> VAT registration number: GB 736 0989 03
>>>>>
>>>>> On 23 Jun 2011, at 19:46, Darrin Cardani wrote:
>>>>>
>>>>>>
>>>>>> On Jun 23, 2011, at 10:52 AM, Martin Baker wrote:
>>>>>>
>>>>>>> I'm trying to get the CGFxPlug example running but not having much luck. It builds fine and appears in Motion 5 as a generator, but when I add it to a new project, rather than a red rectangle I get this
>>>>>>> https://skitch.com/martinjbaker/fgj7w/cgfxplug
>>>>>>
>>>>>> This looks to me like a bug in the sample code. Please file a Radar for it. I suspect I know what the problem is. I'd bet that we're not properly setting up the CGContext for 32-bits per channel or something like that. (That's just a guess from looking at your picture - I haven't actually debugged it yet.)
>>>>>>
>>>>>> Darrin
>>>>>> --
>>>>>> Darrin Cardani
>>>>>> email@hidden
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> --
>>>> Darrin Cardani
>>>> email@hidden
>>>>
>>>>
>>>
>>
>> --
>> Darrin Cardani
>> email@hidden
>>
>>
>
--
Darrin Cardani
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden