Thread: [Tuxpaint-devel] New "Bloom" effect added
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2023-02-07 09:43:40
|
I got a little obsessed over the "bloom" effect, and was struggling to understand Fast Fourier Transforms to get it done. Maybe some day. In the end, I brute-forced it and came up with an okay-looking (if not awesome, and not fast) effect. It's in the Git repo, please try it out. (Pere, let me know how it performs on Android... it's a lot of math!) Thanks in advance! -- -bill! Sent from my computer |
From: Pere P. i C. <per...@gm...> - 2023-02-08 12:30:01
|
Hi Bill, and all, El 7 de febrer de 2023 10:43:18 CET, Bill Kendrick <nb...@so...> ha escrit: > >I got a little obsessed over the "bloom" effect, and was struggling to >understand Fast Fourier Transforms to get it done. Maybe some day. >In the end, I brute-forced it and came up with an okay-looking (if not >awesome, and not fast) effect. It's in the Git repo, please try it out. >(Pere, let me know how it performs on Android... it's a lot of math!) I like this effect :) I've build Tux Paint for Android and found Bloom performs fine in my 2016 midrange phone. Compared with Rush, Bloom is faster, it takes about 8 seconds to perform in fullscreen, Rush takes about the double. I've noticed a couple of minor things: Rush lacks progressbar Googly eyes have the same icon and button string in both sizes making hard to diferentiate between them. > >Thanks in advance! HTH Pere |
From: Pere P. i C. <per...@gm...> - 2023-02-08 23:21:57
|
That was in a debug build, a more regular build speeds up a lot Check it at https://provant.freeddns.org/pere/public_html/developing/20230109/ Best Pere El dc. 08 de 02 de 2023 a les 13:29 +0100, en/na Pere Pujal i Carabantes va escriure: > Hi Bill, and all, > > El 7 de febrer de 2023 10:43:18 CET, Bill Kendrick <nb...@so...> ha escrit: > > > > I got a little obsessed over the "bloom" effect, and was struggling to > > understand Fast Fourier Transforms to get it done. Maybe some day. > > In the end, I brute-forced it and came up with an okay-looking (if not > > awesome, and not fast) effect. It's in the Git repo, please try it out. > > (Pere, let me know how it performs on Android... it's a lot of math!) > > I like this effect :) > > I've build Tux Paint for Android and found Bloom performs fine in my 2016 midrange phone. > Compared with Rush, Bloom is faster, it takes about 8 seconds to perform in fullscreen, > Rush takes about the double. > > I've noticed a couple of minor things: > Rush lacks progressbar > Googly eyes have the same icon and button string in both sizes making > hard to diferentiate between them. > > > > > > Thanks in advance! > > HTH > Pere |
From: Bill K. <nb...@so...> - 2023-02-18 05:48:41
|
On Thu, Feb 09, 2023 at 12:21:49AM +0100, Pere Pujal i Carabantes wrote: > That was in a debug build, a more regular build speeds up a lot > Check it at > https://provant.freeddns.org/pere/public_html/developing/20230109/ Thanks! BTW, in testing this I realize the new stamp rotation feature is pretty terrible on a touchscreen, so I'm going to try and think of a way to make it easier to use. :-/ -bill! |
From: Pere P. i C. <per...@gm...> - 2023-02-18 22:30:57
|
El dv. 17 de 02 de 2023 a les 21:48 -0800, en/na Bill Kendrick va escriure: > On Thu, Feb 09, 2023 at 12:21:49AM +0100, Pere Pujal i Carabantes wrote: > > That was in a debug build, a more regular build speeds up a lot > > Check it at > > https://provant.freeddns.org/pere/public_html/developing/20230109/ > > Thanks! > > BTW, in testing this I realize the new stamp rotation feature is > pretty terrible on a touchscreen, so I'm going to try and think of > a way to make it easier to use. :-/ I see you are currently working in it, let me know if/when you want a new build to test Pere > > -bill! > > > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel |
From: Bill K. <nb...@so...> - 2023-02-20 02:20:48
|
On Sat, Feb 18, 2023 at 11:30:43PM +0100, Pere Pujal i Carabantes wrote: > El dv. 17 de 02 de 2023 a les 21:48 -0800, en/na Bill Kendrick va escriure: > > On Thu, Feb 09, 2023 at 12:21:49AM +0100, Pere Pujal i Carabantes wrote: > > > That was in a debug build, a more regular build speeds up a lot > > > Check it at > > > https://provant.freeddns.org/pere/public_html/developing/20230109/ > > > > Thanks! > > > > BTW, in testing this I realize the new stamp rotation feature is > > pretty terrible on a touchscreen, so I'm going to try and think of > > a way to make it easier to use. :-/ > > I see you are currently working in it, let me know if/when you want a new build to test Basically, I've made it an option (default: off, to avoid changing behavior too much from earlier Tux Paint), and only rotate when dragging outside of the shape. I think for larger shapes, this may be difficult, since you can't reach outside of them, but I'll keep thinking about it. Maybe click+drag will act differently than simply dragging...? It's definitely difficult trying to design something that makes sense with _both_ a mouse _and_ touchscreen! :-) Please make a new build when you have time, and I'll play with it, and maybe see what my family members think of it. -bill! |
From: Pere P. i C. <per...@gm...> - 2023-02-20 09:51:24
|
El dg. 19 de 02 de 2023 a les 18:20 -0800, en/na Bill Kendrick va escriure: > On Sat, Feb 18, 2023 at 11:30:43PM +0100, Pere Pujal i Carabantes wrote: > > El dv. 17 de 02 de 2023 a les 21:48 -0800, en/na Bill Kendrick va escriure: > > > On Thu, Feb 09, 2023 at 12:21:49AM +0100, Pere Pujal i Carabantes wrote: > > > > That was in a debug build, a more regular build speeds up a lot > > > > Check it at > > > > https://provant.freeddns.org/pere/public_html/developing/20230109/ > > > > > > Thanks! > > > > > > BTW, in testing this I realize the new stamp rotation feature is > > > pretty terrible on a touchscreen, so I'm going to try and think of > > > a way to make it easier to use. :-/ > > > > I see you are currently working in it, let me know if/when you want a new build to test > > Basically, I've made it an option (default: off, to avoid changing > behavior too much from earlier Tux Paint), and only rotate when > dragging outside of the shape. > > I think for larger shapes, this may be difficult, since you can't reach > outside of them, but I'll keep thinking about it. Maybe click+drag will > act differently than simply dragging...? Maybe also reduce the "0 rotation space" to the size of buttons instead of the stamp size? Or just reduce it to 0 if the drag has already started to rotate? > > It's definitely difficult trying to design something that makes sense > with _both_ a mouse _and_ touchscreen! :-) > > Please make a new build when you have time, and I'll play with it, and > maybe see what my family members think of it. I haven't tested it, my phone has some problems, https://provant.freeddns.org/pere/public_html/developing/20230220/ > > -bill! > > > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel |
From: Karl O. H. <ka...@hu...> - 2023-02-26 14:28:24
|
Bill Kendrick skreiv 07.02.2023 10:43: > I got a little obsessed over the "bloom" effect, and was struggling to > understand Fast Fourier Transforms to get it done. Maybe some day. > In the end, I brute-forced it and came up with an okay-looking (if not > awesome, and not fast) effect. It's in the Git repo, please try it out. I’m sure the math is complex, but at least on my system, it just looks like a *very* subtle ‘lighten’ effect. And at first, I didn’t think it worked *at all*, as the thing I was drawing disappeared as soon as I let go of the mouse button. But after a bit more testing, I see that it does lighten (non-dark) areas somewhat and adds a (too) subtle glow effect. -- Karl Ove Hufthammer |
From: Bill K. <nb...@so...> - 2023-02-28 06:42:26
|
On Sun, Feb 26, 2023 at 03:28:03PM +0100, Karl Ove Hufthammer wrote: > Bill Kendrick skreiv 07.02.2023 10:43: > >I got a little obsessed over the "bloom" effect, and was struggling to > >understand Fast Fourier Transforms to get it done. Maybe some day. > >In the end, I brute-forced it and came up with an okay-looking (if not > >awesome, and not fast) effect. It's in the Git repo, please try it out. > > I’m sure the math is complex, but at least on my system, it just > looks like a *very* subtle ‘lighten’ effect. It's meant to add a fringe around light parts of the image, to simulate how bright lights affect how things look to a camera or even to human eyes. Here's an example where I created a brown background, with a slightly lighter brown radial gradient, then drew some basic color bars (white, yellow, cyan, green, etc.). The 'glow' seen comes entirely from the bloom effect being applied. https://pbs.twimg.com/media/Fp9DImxacAA-Bj2?format=png&name=small Frankly, I would have loved to implement it using Fast Fourier Transforms, but _that_ level of math has eluded me so far. > And at first, I didn’t think it worked *at all*, as the thing I was > drawing disappeared as soon as I let go of the mouse button. But > after a bit more testing, I see that it does lighten (non-dark) > areas somewhat and adds a (too) subtle glow effect. Okay, I've tried changing "BLOOM_WEIGHT_CONST" from 0.025 to 0.05, basically doubling it, and it's more obvious, without being too overwhelming, I think. -bill! |