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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/eric_h_smith%40mac.com
> 
> This email sent to eric_h_sm...@mac.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Reply via email to