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

add barrel/lens distortion filter from existing implementation? #38

Open
jywarren opened this issue Nov 28, 2016 · 2 comments
Open

add barrel/lens distortion filter from existing implementation? #38

jywarren opened this issue Nov 28, 2016 · 2 comments

Comments

@jywarren
Copy link

I found this implementation of a barrel distortion (also known as lens distortion) filter using WebGL here:

https://github.com/bluemir/fisheye-correction-webgl

I forked it and got a demo running in Github Pages: https://jywarren.github.io/fisheye-correction-webgl/

It's pretty simple and includes shaders: https://github.com/jywarren/fisheye-correction-webgl/tree/master/shaders

I'm curious -- I'm not a WebGL programmer, but it'd be really great if this could be integrated into a more standardized suite of filters such as glfx.js. Is anyone able to help adapt it?

Demo screenshot below:

screenshot 2016-11-27 at 11 10 27 pm

@jywarren
Copy link
Author

I found another implementation here, which seems also reasonably self-contained, though not quite as nice:

http://marcodiiga.github.io/lens_distortion_filtering/

@jywarren
Copy link
Author

I ended up adapting the first project into a stand-alone library here: https://github.com/jywarren/fisheyegl

It's quite a bit more modular, and could be integrated into this project -- i'll probably release an npm module from it. Thanks!

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

1 participant