Able to motion blur images that have transparency?
I'm using a PNG with transparent and semi-transparent parts. These non-opaque parts become darkened when the motion blur is applied.
I hope this can be solved - it's very useful.
Best wishes, Dene
I think the issue may lie in the PNG image. Could you try drawing the same letter in code, using Core Graphics?
Closing because of lack of response.
Hey @dene22 and @fastred, have you found any solution to this?
@sarperdag No, I didn't. Can you provide a sample project showing this error?
@fastred @dene22
Here's a sample project showing the problem
https://dl.dropboxusercontent.com/u/1124427/TransparentMotionBlur.zip
It looks like the issue lies in the filter: https://github.com/fastred/MotionBlur/blob/master/Classes/MotionBlurFilter.m
I don't have any quick ideas how to fix it, so I'll appreciate any help from you!
@fastred Did you write the motion blur code yourself or got it from somewhere else?
The answer is on my blog:
WWDC videos are always a good way to learn the basics of frameworks, so I started by watching sessions 514 – Advances in Core Image and 515 – Developing Core Image Filters for iOS from WWDC 2014. To my surprise, one of the presenters of session 515 showed how to write a motion blur filter. Let's see how it works.
http://holko.pl/2014/07/21/motion-blur/