Re: QCRenderer.... how do you do that?: solved
Re: QCRenderer.... how do you do that?: solved
- Subject: Re: QCRenderer.... how do you do that?: solved
- From: Eric Smith <email@hidden>
- Date: Sun, 11 Apr 2010 07:04:17 -0700
All,
I had tried to create this attached to an OpenGLContext, but apparently didn't do it right. I found the answer at: http://developer.casgrain.com/?p=4
Problem solved.
Eric
On Apr 10, 2010, at 6:56 PM, Eric Smith wrote:
> I'm trying to use a Quartz Composer filter in a cocoa app. I've published inputs and outputs: one image input, one image output. I can successfully set the input image, but when I try to get the output image, I get 0x0.... no error messages, just a null pointer.
>
> Here's my code:
>
> QCComposition* myComp = [QCComposition compositionWithFile:@"/Users/esmith/Desktop/Simple.qtz"];
> QCRenderer* myRenderer = [[QCRenderer alloc] initWithComposition:myComp colorSpace:CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB)];
>
> NSBitmapImageRep* theRep = [[[NSBitmapImageRep alloc] initWithCIImage:[ciImageRep CIImage]] autorelease];
>
> BOOL isSet = [myRenderer setValue:theRep forInputKey:@"InputImage"];
> NSBitmapImageRep* theOutput = [myRenderer valueForOutputKey:@"OutputImage" ofType:@"Image"];
>
> Am I missing a step where I tell the renderer to render? (PS, I've tried renderattime:0, but it doesn't help).
>
> Ideas?
>
> Thanks,
> Eric
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden