Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
In the wwdc sample code there is a project that opens the camera and when you touch the screen it creates ripples.

I've been looking to get the ripple effect without the camera but one part of it has me stuck.
the AVCaptureVideoDataOutputSampleBufferDelegate delegate method
Code:
- (void)captureOutput:(AVCaptureOutput *)captureOutput 
didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer 
       fromConnection:(AVCaptureConnection *)connection
initializes the ripple object, and then it create some texture thing using
Code:
CVOpenGLESTextureCacheCreateTextureFromImage()
But that requires a CVImageBufferRef object which it gets from the delegate's parameters.



In this case... what am I meant to replace this code with if I want the ripple to be on top of a view that isn't showing the camera?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.