-
Notifications
You must be signed in to change notification settings - Fork 236
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
Disassociate Fade and Blur #2
Comments
Maybe you can create a short screencast to show the intended effect? This would help me better understand the desired effect. The problem I previously had was with transparent clients still beeing completely blurred. I guess this transparent-but-blurred client completely dissappears just the moment the oppacity changes to zero and reappears as soon as it goes above. The current hack just tries to change the “draw-opacity” of the blur-layer with the windows opacity. Sadly though, the dual-filter kawase blur does not allow for smooth scaling/interpolation between different blur levels. |
Thanks for your quick answer! To illustrate my mind I made 3 quick example:
I hope it's more clear to understand |
Did it helps? ^^ |
Yeah, the animations did help bring the desired behavior across, thanks. But I'm currently a bit short on time, so it might take a while. |
Hey, I've added support for opacity changes of the blur-layer. Currently the blur is faded linearly between 20% and 0% opacity. When fading over the complete range, the blur effect is lost way too early. I made a demo of both effects: https://imgur.com/a/nNjGzK6 Is the fade-only effect close enough to your desired effect? |
I'd like to chime in and say that this is great! It's the functionality I used to have before switching to the dual kawase blur. To have this back would be fantastic |
Hey nice work on this! |
Hey, finally managed to get around making a demo of the fullrange opacity change: https://imgur.com/a/neNMa5W I've also added a comparison to the limited fading when window opacity just changes from 100% to 20%. |
If you want to try them out for yourself, I've pushed the hacky changes to their own branch https://github.com/tryone144/compton/tree/hack/opacity. You can compile these features in with the following flags: Limited blur range (0-0.2)$ make clean && CFLAGS="-DBLUR_RANGE=1" make Limited blur range (0-0.2) + Adaptive blur level$ make clean && CFLAGS="-DBLUR_HACK -DBLUR_RANGE=1" make Full blur range (0-1.0)$ make clean && CFLAGS="-DBLUR_RANGE=2" make Full blur range (0-1.0) + Adaptive blur level$ make clean && CFLAGS="-DBLUR_HACK -DBLUR_RANGE=2" make |
@tryone144 My scrolling in chrome is very choppy when using the hack. Any ideas why? |
@vn-ki Hmm, chrome is known to be problematic with compton... |
It happens with all branches but more pronounced in hack. Full blur range (0-1.0) is almost equal to On a side note, yshui compton has no problems. Are you planning to take this upstream to yshui? |
Also, I am using intel drivers
|
Jep, see #9 😉 The recent changes should make this easier to merge now. |
@tryone144 There is a huge battery drain on this branch. Can you look into it? I get like 8-10 hrs on original compton and about 3-4 on this branch. |
Hello @tryone144 thanks for your work on this, it's Awesome.
However I noticed that If I use blurred background with the Fade-in/Fade-out feature It's don't work properly in my opinion.
Because today Fade-out feature basically change the opacity from the current level to 0 making the Client transparent while the blur feature make a transparent Client blurred.
The result is that all the fade-in or the fade-out create blur which could be a valid option but the problem here is that the blur "appear" or "disappear" instantly at entrance or exit of Client which break for me the use of the fading feature which is supposed to be a gentle transition.
Instead I would prefer that the opacity of the fading feature is independant of the opacity of the Client. It's mean that a blurred Client fading-out will appear less and less blurred and more an more transparent and would disappear gently.
Maybe it's already possible Im not a pro in Compton...
Please let me konw of what you are thinking about it.
Thanks in advance.
The text was updated successfully, but these errors were encountered: