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

Blurring #27

Closed
sarahzrf opened this issue Feb 2, 2017 · 4 comments
Closed

Blurring #27

sarahzrf opened this issue Feb 2, 2017 · 4 comments

Comments

@sarahzrf
Copy link

sarahzrf commented Feb 2, 2017

As far as I can tell, you're currently faking the motion blurs by drawing a bunch of copies of the image. I just thought I'd mention that it's possible (albeit kind of hacky) to get genuine 1-dimensional gaussian blurring in canvas using SVG filters: here's a demo.

Sorry to waste your time if you already knew about this and had reasons not to do it this way!

@mon
Copy link
Owner

mon commented Feb 2, 2017

I did initially use an SVG blur, but it was incredibly slow - on a full size image, I was getting under 15fps. Quasi blur is the best you'll get for realtime unless I move to WebGL ala Kepstin's hues

@sarahzrf
Copy link
Author

sarahzrf commented Feb 2, 2017

Ah, that's a shame :\

@sarahzrf
Copy link
Author

sarahzrf commented Feb 2, 2017

Actually, how hard would it be to just transplant Kepstin's code?

@mon
Copy link
Owner

mon commented Feb 2, 2017

Annoyingly. Requires an entire rewrite of the rendering pipeline.

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

2 participants