WesselKroos / youtube-ambilight

This browser extension adds ambient light to YouTube videos
MIT License
87 stars 8 forks source link

Idea: Radial blur #253

Open Eyemanatpc opened 4 months ago

Eyemanatpc commented 4 months ago

First of all: I love this extension. It would be awesome to have this for VLC as well... (if you have recomendations for another player providing such experience, pls tell me)

But i have an idea to improve the visual experience, i think. The usual blur-effect is OK, but i think it would look much better if anything like the "radial-zoom blur" would be available (like in PS, see screenshot). radial-zoom blur This would provide smother transitions from the Clip-edges to the ambi.

Alternative it would be great to have an blur-effect which increases. Starting form the Clip-edges with less blur but inceases as spreading.

And to improve this even more, maybe it would be awesome to combine this two blur-effect.

I did some samples via image-editing, from the clip "[HD] Trippy Animation courtesy of Anthony Francisco Schepperd".

Original: Ambi-Blur-without

Radial-zoom-blur: Ambi-Blur-radial-zoom-blur

Increase-blur: Ambi-Blur-increase

Just my ideas... but at least the radial-zoom-blur looks better to me than the usual blur-over-whole-image. Nevertheless, amazing extension, thanks for providing this tool to us ! :D

WesselKroos commented 4 months ago

Great idea!

It does require me to write a custom WebGL blur shader that can create this kind of blur effect, since browsers have no support for it. I did some investigation into creating a WebGL blur shader in 2022-2023 to improve performance, but dropped the idea since it seemed too complex without benefits: #113 comment

Your idea might make this worth while, but expect it to take a long time to develop this. (Unless someone comes along with a complete code example of a good performing WebGL blur shader with customizable strength.)

WesselKroos commented 4 months ago

Todo: