GIMP Chat
http://gimpchat.com/

GEGL Fog Effect
http://gimpchat.com/viewtopic.php?f=9&t=19997
Page 1 of 1

Author:  contrast_ [ Sun Jun 26, 2022 7:26 pm ]
Post subject:  GEGL Fog Effect

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

Author:  mahvin [ Mon Jun 27, 2022 9:44 am ]
Post subject:  Re: GEGL Fog Effect

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

Author:  mahvin [ Mon Jun 27, 2022 11:02 pm ]
Post subject:  Re: GEGL Fog Effect

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

Author:  mahvin [ Tue Jun 28, 2022 11:58 am ]
Post subject:  Re: GEGL Fog Effect

Tested with an existing image. It certainly has potential.

Image

Author:  MareroQ [ Tue Jun 28, 2022 11:50 pm ]
Post subject:  Re: GEGL Fog Effect

..."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:

Attachments:
Fog image to layer.jpg
Fog image to layer.jpg [ 199.06 KiB | Viewed 1280 times ]

Author:  contrast_ [ Wed Jun 29, 2022 12:11 pm ]
Post subject:  Re: GEGL Fog Effect

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.

Author:  MareroQ [ Fri Jul 01, 2022 8:00 am ]
Post subject:  Re: GEGL Fog Effect

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).

Author:  contrast_ [ Fri Jul 01, 2022 8:54 am ]
Post subject:  Re: GEGL Fog Effect

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

Author:  contrast_ [ Fri Jul 01, 2022 8:57 am ]
Post subject:  Re: GEGL Fog Effect

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

Author:  gimpmannew [ Mon Jul 04, 2022 2:22 pm ]
Post subject:  Re: GEGL Fog Effect

Can someone post a window version here? Thank you.

Author:  Pocholo [ Mon Jul 04, 2022 3:29 pm ]
Post subject:  Re: GEGL Fog Effect

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

Attachments:
Gegl_fog.zip [37.88 KiB]
Downloaded 50 times

Author:  Boobl [ Fri Jul 15, 2022 4:37 am ]
Post subject:  Re: GEGL Fog Effect

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

Author:  Rod [ Fri Jul 15, 2022 8:10 pm ]
Post subject:  Re: GEGL Fog Effect

Windows 10 64 bit
image size - 2000 x 1770

Attachment:
GEGE_FOG_TEST_WINDOWS_2022-07-15_210516.jpg
GEGE_FOG_TEST_WINDOWS_2022-07-15_210516.jpg [ 276.54 KiB | Viewed 721 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.

Author:  Rod [ Fri Jul 15, 2022 8:15 pm ]
Post subject:  Re: GEGL Fog Effect

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

Author:  Rod [ Fri Jul 15, 2022 8:21 pm ]
Post subject:  Re: GEGL Fog Effect

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


Attachment:
FOG_WORKS_2022-07-15_211622.jpg
FOG_WORKS_2022-07-15_211622.jpg [ 283.64 KiB | Viewed 720 times ]

Author:  contrast_ [ Mon Aug 22, 2022 10:43 pm ]
Post subject:  Re: GEGL Fog Effect

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

Author:  Rod [ Tue Aug 23, 2022 1:21 am ]
Post subject:  Re: GEGL Fog Effect

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

Attachment:
GEGL-Fog-Works-GREAT_RD-2022-08-23_022317.jpg
GEGL-Fog-Works-GREAT_RD-2022-08-23_022317.jpg [ 311.71 KiB | Viewed 644 times ]


DLL file attached.

Attachment:
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.

Author:  contrast_ [ Wed Aug 31, 2022 10:24 pm ]
Post subject:  Re: GEGL Fog Effect

Image

Author:  mahvin [ Thu Sep 01, 2022 1:05 am ]
Post subject:  Re: GEGL Fog Effect

All kinds of crazy effects are possible with fog.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/