Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Able to motion blur images that have transparency? #2

Open
supfunc opened this issue Dec 14, 2014 · 8 comments
Open

Able to motion blur images that have transparency? #2

supfunc opened this issue Dec 14, 2014 · 8 comments

Comments

@supfunc
Copy link

supfunc commented Dec 14, 2014

img_3968

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

@supfunc supfunc changed the title Able to motion blur images with transparency? Able to motion blur images that have transparency? Dec 14, 2014
@fastred
Copy link
Owner

fastred commented Apr 19, 2015

I think the issue may lie in the PNG image. Could you try drawing the same letter in code, using Core Graphics?

@fastred
Copy link
Owner

fastred commented Aug 10, 2015

Closing because of lack of response.

@fastred fastred closed this as completed Aug 10, 2015
@sarperdag
Copy link

Hey @dene22 and @fastred, have you found any solution to this?

@fastred
Copy link
Owner

fastred commented Aug 23, 2015

@sarperdag No, I didn't. Can you provide a sample project showing this error?

@sarperdag
Copy link

@fastred @dene22

Here's a sample project showing the problem

https://dl.dropboxusercontent.com/u/1124427/TransparentMotionBlur.zip

@fastred fastred reopened this Aug 23, 2015
@fastred
Copy link
Owner

fastred commented Aug 23, 2015

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!

@sarperdag
Copy link

@fastred Did you write the motion blur code yourself or got it from somewhere else?

@fastred
Copy link
Owner

fastred commented Aug 24, 2015

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants