Use Core Image to filter an FxTexture in FxPlug
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=1RF3sOyPH2FyNVt+TFsuBA52Em19n03YWe2hx7pYv/c=; b=sGOKYakPS7ebS+u/ZPPOF1oQ6ncQo8vCKsKTsYBmme5KaREP0TJ6Qj80gqaDYDN07E 2j30uGRF7QrqJ/jMUxFBwjs16VJ2aHwX7/B7hVCo/9NdKKs1Ps4FA5bG846pmt058TfP p86rF88F2R3UUTcvZgFspPWvCn02yoALJM0sE= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=hhB+hh1uKOLUwetfwUKVb/1vOP9UeGZumHMxF5i/Gtjv7Q0Wc8iJY9YPl6rIorxY4E d5pwooIU+ci848UKVXas3LunloYBrCHeNNJESubO9I72vXtZTPXj+V6UqMxXkBl1QuzK L8Zn4hLQwdAuRasKlCHvO/bQ1ddfc9XMCG9ps= Hello, I'm fairly new to FxPlug and Core Image and am confused by what I think should be something simple I want to render simply create a core image with the FxTexture, filer it, and then draw the contents back onto the output image. For my example, I've removed the filter so I'd just like to understand how to render the core image back onto the output texture. I could be way off, but here goes: CIContext *myCIContext; NSOpenGLPixelFormatAttribute attr[] = { NSOpenGLPFAAccelerated, NSOpenGLPFANoRecovery, NSOpenGLPFAColorSize, 32, (NSOpenGLPixelFormatAttribute) 0 }; NSOpenGLPixelFormat* pixelFormat = [[[NSOpenGLPixelFormat alloc] initWithAttributes:attr] autorelease]; myCIContext = [CIContext contextWithCGLContext:renderInfo.sharedContext pixelFormat:[pixelFormat CGLPixelFormatObj] options:nil]; CGRect rect; rect.origin.x = 0; rect.origin.y = 0; rect.size.width = [inTex width]; rect.size.height = [inTex height]; CIImage *imageBuffer = [[CIImage alloc] initWithTexture:[inTex textureId] size:rect.size flipped:NO colorSpace:nil]; Thanks! -- - Jim _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jim George