Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

GEGL Fog Effect

Sun Jun 26, 2022 7:26 pm

I ported the existing python fu operation to GEGL. I could have made it where the fog covers the entire composition regardless of size but that would have ruined the ability to add fog to images with excessive height. As a result you have to manually input the pixel size on very large images. If you click the height and width box and input numbers you can manually change the pixel size.


Enjoy GEGL Fog

Image

https://github.com/LinuxBeaver/GEGL-Fog

Re: GEGL Fog Effect

Mon Jun 27, 2022 9:44 am

I'll check this one out this evening. Looks interesting.

Re: GEGL Fog Effect

Mon Jun 27, 2022 11:02 pm

I downloaded the effect and have yet to experiment with it. I'll let you know my thoughts.

Re: GEGL Fog Effect

Tue Jun 28, 2022 11:58 am

Tested with an existing image. It certainly has potential.

Image

Re: GEGL Fog Effect

Tue Jun 28, 2022 11:50 pm

..."If the image is very large or long you need to manually adjust the width and height of the pixels." ...
Could Gegl not get the image size?
Also a bit of an inconvenience with images smaller than 2048x1536:

Re: GEGL Fog Effect

Wed Jun 29, 2022 12:11 pm

Unfortunately, I had to make a tough decision to make it work on large vertical images and users have to manually input pixel size if the image is over 2048x1536. If I did not do this then the effect would not work on large vertical images.

Re: GEGL Fog Effect

Fri Jul 01, 2022 8:00 am

Next question:
Plasma (component of the fog) also works for selection.
Can You get the Select All option in Gegl (Equivalent to Ctr + A)?
Then You don't need to adjust the height and width when you set their maximum in code c (= 4096).

Re: GEGL Fog Effect

Fri Jul 01, 2022 8:54 am

Plasmas fog effect looks horrible if the image is excessively vertical. GEGL cannot select anything. Gimp does not have a way to select for GEGL outside of Matting Levin and Matting Global. (which I don't have a clue on what is going on)

Fog is created by the following filters.

Plasma
Desaturate
Color to Alpha
Color Ovelay
Gaussian Blur

Re: GEGL Fog Effect

Fri Jul 01, 2022 8:57 am

Just hit layer to image size after applying fog. I don't seem to have that problem though

Re: GEGL Fog Effect

Mon Jul 04, 2022 2:22 pm

Can someone post a window version here? Thank you.

Re: GEGL Fog Effect

Mon Jul 04, 2022 3:29 pm

For GIMP 2.10:
Version for Gimp-2.10.32 Win 64 Bit attached.
Place the file in Gegl plugins in a directory: C:\Users\YourName\AppData\Local\gegl-0.4\plug-ins
If you're missing the plugin-ins folder, create one.

In menu Tools➤ GEGL Operation➤ Fog or Cloud effect

Re: GEGL Fog Effect

Fri Jul 15, 2022 4:37 am

It looks cool, I think you can make some pretty atmospheric pictures with this effect.

Re: GEGL Fog Effect

Fri Jul 15, 2022 8:10 pm

Windows 10 64 bit
image size - 2000 x 1770

GEGE_FOG_TEST_WINDOWS_2022-07-15_210516.jpg
GEGE_FOG_TEST_WINDOWS_2022-07-15_210516.jpg (276.54 KiB) Viewed 724 times



Maybe i am not using it correctly?

It did indeed allow me to resize by clicking the height value but my results were just a fog image and no transparency.

Re: GEGL Fog Effect

Fri Jul 15, 2022 8:15 pm

Am i supposed to create a new layer and set the mode to lighten only?

Re: GEGL Fog Effect

Fri Jul 15, 2022 8:21 pm

Figured it out! :)
Sorry didn't see the blending modes button.


FOG_WORKS_2022-07-15_211622.jpg
FOG_WORKS_2022-07-15_211622.jpg (283.64 KiB) Viewed 723 times

Re: GEGL Fog Effect

Mon Aug 22, 2022 10:43 pm

This filter now works on single layers regardless if you use the normal blend mode or not. I did not intentionally do this originally but I choose not to fix it as a way to encourage people to use layers. Now you don't need to use layers or the normal blend mode.

I can do the same to GEGL action lines

Re: GEGL Fog Effect

Tue Aug 23, 2022 1:21 am

contrast_ wrote:This filter now works on single layers regardless if you use the normal blend mode or not. I did not intentionally do this originally but I choose not to fix it as a way to encourage people to use layers. Now you don't need to use layers or the normal blend mode.

I can do the same to GEGL action lines

Thx contrast. I am waiting for Gimp to load so i can test the Windows 64 bit dll file. Then i'll add the zip attachment to THIS post.

Pocholo if i do you should remove your compiled Windows version so as not to confuse others who skip thru the thread.

Works Great! :bigthup

GEGL-Fog-Works-GREAT_RD-2022-08-23_022317.jpg
GEGL-Fog-Works-GREAT_RD-2022-08-23_022317.jpg (311.71 KiB) Viewed 647 times


DLL file attached.

Gegl_fog.7z
(29.68 KiB) Downloaded 35 times


Just unzip to AppData/local/gegl-4.0/plugins folder. THIS WILL REPLACE THE OLD Gegl_fog FOLDER!
So when it asks you to replace allow it to.

Re: GEGL Fog Effect

Wed Aug 31, 2022 10:24 pm

Image

Re: GEGL Fog Effect

Thu Sep 01, 2022 1:05 am

All kinds of crazy effects are possible with fog.
Post a reply