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

Adding Rounded Rectangle to obs-shaderfilter #1

Open
Oncorporation opened this issue Aug 11, 2020 · 2 comments
Open

Adding Rounded Rectangle to obs-shaderfilter #1

Oncorporation opened this issue Aug 11, 2020 · 2 comments

Comments

@Oncorporation
Copy link

Oncorporation commented Aug 11, 2020

Excellent work!

I added a couple variables and a reference to your code in the comments. I hope you approve of adding it to the examples of obs-shaderfilter!

@exeldro
Copy link
Owner

exeldro commented Aug 11, 2020

I see you put it here: https://github.com/Oncorporation/obs-shaderfilter/blob/master/data/examples/rounded_rect2.shader
Yeah, go ahead and use it as an example. It is not perfect yet it will look strange on parts or gaps smaller than the radius and on not rectangular parts. Because I tried to optimize it for a specific use case.

@ArcadeHall
Copy link

ArcadeHall commented Nov 30, 2021

I have a question about the fish-eye shader: is it possible to add a barrel distortion which only works in x or y direction of the image? I have looked at the formulas in the fish-eye shader, but that's over my head. I have a webcam which has a fish-eye distortion which can be corrected by a negative power in the fish-eye shader. But still the image looks a bit like this: )==(. I only need some correction in the x direction, but not y, since the lines are straight vertically. Can you give me a formula for this perhaps?

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