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

The shader seems to have skip sampling behavior #28

Open
Danjuanlab opened this issue Nov 18, 2023 · 1 comment
Open

The shader seems to have skip sampling behavior #28

Danjuanlab opened this issue Nov 18, 2023 · 1 comment

Comments

@Danjuanlab
Copy link

Danjuanlab commented Nov 18, 2023

I tried to use the obs shader plug-in to delete specific grayscale colors (adjust alpha=0) on a black and white masked image, but I found that the results were always unsatisfactory.

Later, I tried to use the code as shown below to test, and I found that the final result screen seemed to have a regular pixel skip sampling problem. In the black pixels, every other pixel will become transparent, but in the actual picture, there is no such color performance in the black parts.

This grayscale picture is from bmd ultimatte 12 chroma key matte out.

微信图片_20231118162544

微信图片_20231118162559
微信图片_20231118162605

微信图片_20231118162609

this is orignal frame
微信图片_20231118162616

@micsthepick
Copy link

can you see what happens if you use either of the following:
return image.Sample(textureSampler, v_in).xyzx;
or
base = image.Sample(textureSampler, v_in);
base.a = base.r > 0.5 ? 1.0 : 0.0

It seems as if your file doesn't have absolute black everywhere. perhaps it's dithered?

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