obs-lua icon indicating copy to clipboard operation
obs-lua copied to clipboard

Adding Rounded Rectangle to obs-shaderfilter

Open Oncorporation opened this issue 4 years ago • 2 comments

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!

Oncorporation avatar Aug 11 '20 04:08 Oncorporation

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.

exeldro avatar Aug 11 '20 05:08 exeldro

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?

ArcadeHall avatar Nov 30 '21 14:11 ArcadeHall