It is currently Sun Jun 30, 2024 11:14 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 19 posts ] 
Author Message
 Post subject: GEGL Fog Effect
PostPosted: Sun Jun 26, 2022 7:26 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1453
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


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Mon Jun 27, 2022 9:44 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I'll check this one out this evening. Looks interesting.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Mon Jun 27, 2022 11:02 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
I downloaded the effect and have yet to experiment with it. I'll let you know my thoughts.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Tue Jun 28, 2022 11:58 am  (#4) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Tested with an existing image. It certainly has potential.

Image

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Tue Jun 28, 2022 11:50 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
..."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 1269 times ]

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Wed Jun 29, 2022 12:11 pm  (#6) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1453
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.


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Fri Jul 01, 2022 8:00 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
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).

_________________
Image

Slava
Ukraini!


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Fri Jul 01, 2022 8:54 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1453
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


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Fri Jul 01, 2022 8:57 am  (#9) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1453
Just hit layer to image size after applying fog. I don't seem to have that problem though


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Mon Jul 04, 2022 2:22 pm  (#10) 
Offline
GimpChat Member

Joined: Jan 13, 2022
Posts: 58
Can someone post a window version here? Thank you.


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Mon Jul 04, 2022 3:29 pm  (#11) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
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

_________________
https://www.deviantart.com/pocholo17
Image
Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Fri Jul 15, 2022 4:37 am  (#12) 
Offline
New Member

Joined: Jul 15, 2022
Posts: 3
It looks cool, I think you can make some pretty atmospheric pictures with this effect.


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Fri Jul 15, 2022 8:10 pm  (#13) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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 709 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.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Fri Jul 15, 2022 8:15 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Am i supposed to create a new layer and set the mode to lighten only?

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Fri Jul 15, 2022 8:21 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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 708 times ]

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Mon Aug 22, 2022 10:43 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1453
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


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Tue Aug 23, 2022 1:21 am  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
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 632 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.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Wed Aug 31, 2022 10:24 pm  (#18) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1453
Image


Top
 Post subject: Re: GEGL Fog Effect
PostPosted: Thu Sep 01, 2022 1:05 am  (#19) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
All kinds of crazy effects are possible with fog.

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
Post new topic Reply to topic  [ 19 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL Text cut out effect

25

No new posts Attachment(s) GEGL Clay Bevel effect

51

No new posts Attachment(s) GEGL Sparkle effect plugin - download provided

5

No new posts Attachment(s) GEGL Color Fill Trail effect and multistroke

16

No new posts Attachment(s) Cutout Effect - Gegl plugin for Windows 64bit users

2



* Login  



Powered by phpBB3 © phpBB Group