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

How to make background not blurry #14

Open
smallma opened this issue Sep 27, 2023 · 8 comments
Open

How to make background not blurry #14

smallma opened this issue Sep 27, 2023 · 8 comments

Comments

@smallma
Copy link

smallma commented Sep 27, 2023

Hello,

I had tried mist: false, but it seems not to remove background blurry. Please help to know how to make background clear. Thanks.

@SardineFish
Copy link
Owner

Set backgroundBlurSteps to 0 should help :)

@smallma
Copy link
Author

smallma commented Sep 28, 2023

"Sorry for not explaining clearly. I want to make the blurred background clear. Setting the 'backgroundBlurSteps' value to 0 just turns the raindrops black (as shown below). What I want is to have the background clear in the background. Thank you.

image

@SardineFish
Copy link
Owner

That should be a BUG. I will fix it in few days.

@smallma
Copy link
Author

smallma commented Oct 2, 2023

@SardineFish Thank you

@SardineFish
Copy link
Owner

@smallma Try this PR by changing your package dependency to

"dependencies" : {
  "raindrop-fx" : "git+https://github.com/SardineFish/raindrop-fx.git#fix-background-blur"
}

Then you can disable background blur by setting backgroundBlurSteps to 0.
If works, I will merge it.

@smallma
Copy link
Author

smallma commented Nov 1, 2023

@SardineFish 非常感謝你的幫忙 但看起來還是不行, 我把背景換成清楚的版本和你提供的 js 原始碼 雨滴還是有破圖 再麻煩幫忙看看 謝謝
https://codepen.io/smallma009/pen/oNJdoew
image

@SardineFish
Copy link
Owner

我发现问题主要因为你的图片是带有透明的 PNG,图中的白色背景实际上是透明黑色 rgba(0, 0, 0, 1)。但是雨滴在渲染时不会采样 alpha 通道,所以得到了黑色。建议你可以更换一张背景图或是加上一个实色背景。我也会在后续加入对透明图片的支持

@smallma
Copy link
Author

smallma commented Nov 2, 2023

非常感謝你的協助 謝謝

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