Quote:
Originally Posted by nick.keroulis
Thanks Dun,
I think i have read about that somewhere but im confused cause in the link i ve
posted it refers to image filters. How on earth can that be assosiated with
animations? Anyway i have found several examples on Gaussian Blur filter
actually 2 examples for iPhone and 3 for the Mac but i need it to use graphics
acceleration. I need it to be as fast as lightning. Is there anyway i can do
that? even with the CALayer or is it not possible on iPhone?
|
Yes.
Look in Apple's Docs under CIFilter. It's under Apple's Core Image framework, which uses the graphics hardware to do the filtering quite fast. They are easy to use.
As best I can tell, the site you linked to had all the correct info, but every reference to the name was wrong. If you just substitute "CIFilter" everywhere they said "CAFilter", all the information is correct.
There is a gaussian blur filter built into Core image, documented (with the wrong name CAFilter) in the link you posted. It takes a radius and amount parameter, just like the gaussian blur in Photoshop.
You could also do this using OpenGL ES 2.0 and custom shaders, but that is pretty advanced stuff. I have a fair amount of experience with OpenGL on the Mac, and am just finishing my first project using OpenGL ES 2 and shaders under iOS. I really struggled at first, and that was with a strong foundation in OpenGL concepts. If you've never tackled OpenGL before, and are not an advanced programmer, expect to be in over your head. Tricky stuff, that.