It is currently Mon Jul 01, 2024 12:35 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: What does GEGL graph do ?
PostPosted: Thu May 12, 2022 3:54 am  (#21) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
I did an investigation of contrast_'s filters.

contrast_ mixes gimp filters and gegl commands in (his,her) filters.
'gimp:desaturate' is from Gimp and 'edge-neon' is a Gegl command.

To work in a batch file only the gegl commands can be used. Gimp has no command line interface. (if you type 'gimp' in a terminal it opens Gimp)

It's no secret I think video is the present future of graphic art. I like the way gegl graph filters can be saved but they can only be applied to one frame at a time. Tedious when one second of video is 30 or 60 frames.

The cool thing is, with a full gegl command list, the variables for each command and the gegl-graph interface, somebody can make new and interesting batch filters. Thanks contrast_ for posting your filters and giving people ideas.


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Thu May 12, 2022 3:39 pm  (#22) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1454
Image

I want to make a GEGL Inner Glow filter and I have proven operations to do it inside Gegl:Graph but I don't know how to make a GUI of it. :(
id=first

color-overlay value=#ffffff
gimp:layer-mode layer-mode=behind opacity=2 aux=[ color  ]


color-to-alpha

id=k

#the mask

id=1
gimp:layer-mode layer-mode=normal opacity=1.00 aux=[ ref=1 ]

#this dropshadow controls the inner glow. All other filters need to be hidden
dropshadow x=0 y=0 opacity=1..3  grow-radius=6 radius=0 color=#0058ff


lens-blur radius=4.0


gimp:layer-mode layer-mode=behind opacity=1.00 aux=[ ref=1 ]



gimp:layer-mode layer-mode=erase opacity=1.00 aux=[ ref=k ]



gimp:layer-mode layer-mode=behind opacity=1.00 aux=[ ref=first ]


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 10:54 am  (#23) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
contrast_ wrote:
[ Image ]
[ Image ]
[ Image ][ Image ]


This is a specialty bevel with a custom image overlay from pattern monster.

gegl:rotate degrees=0.0  sampler=lohalo

gegl:color-overlay value=#ffec00


median-blur percentile=50 alpha-percentile=2

gaussian-blur #stays locked at 0.50 in default. Never changes.

emboss  type=bumpmap azimuth=70  elevation=40 depth=3                   

median-blur radius=10 percentile=100 alpha-percentile=80 high-precision=yes

multiply aux=[gegl:layer src=PUT_YOUR_FILE_HERE.png]
t
opacity value=2
gegl:gray



dropshadow opacity=0.5 x=4 y=2


dropshadow opacity=0.5 x=4 y=2


Where are the pattern png's stored on the computer in order for GEGL Graph to pull them in?

In your User folder.

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 12:48 pm  (#24) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Checkerboard

Image

checkerboard
   x=200
   y=200
   color1=blue
   color2=yellow

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 2:49 pm  (#25) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Just a simple bump map for text.

I utilized parts of Contrast's code to make the text more interesting.

I tried to find a way to clear the feathering around the text for the background image and ended up using a path selection to delete that area.
Quote:
The easiest way I found to keep the background from feathering outside the text is to make the text "Layer to image size" then Alpha to Selection and run the GEGL graph bump map. After you select ok, just add a dropshadow to the same layer.


Image

bump-map

gaussian-blur
gaussian-blur
gaussian-blur
gaussian-blur

emboss  type=bumpmap azimuth=135  elevation=45 depth=75
   
#invert (just inverts the layer)
#tile (offset is for tile. No good use for this unless you want to experiment. It just moves your text)
offset-x=30
offset-y=30

median-blur radius=1 percentile=15 alpha-percentile=50 high-precision=yes

#(place background layer in your User folder.)
multiply aux=[gegl:layer src=YourImageHere.png]


dropshadow opacity=0.75 x=10 y=10

#(you can make the dropshadow more intense by uncommenting this. x and y values can be raised or lowered)
#dropshadow opacity=0.75 x=10 y=10

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 4:09 pm  (#26) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Long Shadow

Image

long-shadow 
   color=lime
   angle=35
   length=150
   midpoint-rel=75
   midpoint=50
#finite infinite fading fading-fixed-length (4 types)
   style=fading-fixed-length

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 5:08 pm  (#27) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Mosaic

The larger images will drag your system down. Be mindful of any settings that tend to slow your graphing down.

Image

mosaic
   tile-size=50
#squares - hexagons - octagons - triangles are accepted
   tile-type=octagons
#play with tile-height but do not go too high! (50)
   tile-height=10
   tile-allow-split=TRUE
   tile-surface=TRUE
   tile-neatness=.65 # .65 to 1
   tile-spacing=3 #in pixels
   color-variation=.5 # .20 to 1
   antialiasing=TRUE
   joints-color=rgb(.00,.00,.00) #.00 numbers for RGB
   light-dir=135 #360 degrees
   light-color=gray

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 5:49 pm  (#28) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Fractal Explorer

Image

fractal-explorer

#mandlebrot - julia - barnsley-1 - barnsley-2 - barnsley-3 - spider - man-o-war - lambda - sierpinski
   fractaltype=julia
   iter=100
   zoom=1000
   shiftx=100
   shifty=-100
   #cx=.75
   #cy=-.75
   redmode=sine
   bluemode=cosine
   greenmode=none
   redinvert=TRUE
   blueinvert=TRUE
   greeninvert=FALSE
   ncolors=256

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 5:53 pm  (#29) 
Offline
GimpChat Member
User avatar

Joined: Nov 04, 2015
Posts: 1365
Good to see you doing graphics and code again mahvin. You seemed to disappear for awhile.

I notice contrast has not figured-out how to turn his gegl graph code into a gui yet, maybe he has ? I recon python would do it easiest.

I've made an animation using gegl command line on 70 frames and figured-out the process.


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 5:57 pm  (#30) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1454
mahvin wrote:
Long Shadow

[ Image ]

long-shadow 
   color=lime
   angle=35
   length=150
   midpoint-rel=75
   midpoint=50
#finite infinite fading fading-fixed-length (4 types)
   style=fading-fixed-length

This is really cool. I never thought of it. Do you have the code for the multi long shadow?


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 6:02 pm  (#31) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
contrast_ wrote:
mahvin wrote:
Long Shadow

[ Image ]

long-shadow 
   color=lime
   angle=35
   length=150
   midpoint-rel=75
   midpoint=50
#finite infinite fading fading-fixed-length (4 types)
   style=fading-fixed-length

This is really cool. I never thought of it. Do you have the code for the multi long shadow?


I did it in phases using different colors then blended them together. I would love to make it all in one go, but I haven't figured out how to stop one sequence before starting another. It shows you can load layers, but I have yet to figure how it works.

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 6:13 pm  (#32) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1454
mahvin wrote:
contrast_ wrote:
mahvin wrote:
Long Shadow

[ Image ]

long-shadow 
   color=lime
   angle=35
   length=150
   midpoint-rel=75
   midpoint=50
#finite infinite fading fading-fixed-length (4 types)
   style=fading-fixed-length

This is really cool. I never thought of it. Do you have the code for the multi long shadow?


I did it in phases using different colors then blended them together. I would love to make it all in one go, but I haven't figured out how to stop one sequence before starting another. It shows you can load layers, but I have yet to figure how it works.


GEGL Graph uses virtual layers not layers in Gimp.


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 6:15 pm  (#33) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Tas_mania wrote:
Good to see you doing graphics and code again mahvin. You seemed to disappear for awhile.

I notice contrast has not figured-out how to turn his gegl graph code into a gui yet, maybe he has ? I recon python would do it easiest.

I've made an animation using gegl command line on 70 frames and figured-out the process.


Life is funny like that. Lots of things going on, on the home-front and with work, and my mother's passing, and trying to keep pace with my grandkids who have me plumb tuckered out. I'm around. Contrast just got my attention with GEGL. I also have a second job helping a local photographer with his equipment and set-ups. Lots of nights in the rain, with smoke machines and lights. Livestreaming events are fun, though.

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 6:21 pm  (#34) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Quote:
GEGL Graph uses virtual layers not layers in Gimp.


You called up a background layer in one set of code. Example: multiply aux=[gegl:layer src=PUT_YOUR_FILE_HERE.png].

I thought surely you could call more than one, without using multiply, etc.

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 7:56 pm  (#35) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
It turns out you can load multiple images from your drive, just can't sequence the actions in the pipeline without commenting things out, and then testing the results. So, in essence, I can load two separate long shadow images, and create a third with gegl graph and then combine the results (carefully). Layer modes are tricky, and some are legacy and I have yet to solve if I can use gimp syntax in the pipeline in gegl graph. Probably not. Who knows.

Anyway, Plasma

Image

plasma
   turbulence=2
   x=1  #image starts at top corner
   y=1
   width=4096
   height=4096
   seed=12345 #drop a random number for seed

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Sun May 15, 2022 9:39 pm  (#36) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1454
Every filter I made was made from bits and pieces of existing GEGL Filters and operations. The only way to make new operations from scratch is by being a mathematician which I am obviously not.


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Mon May 16, 2022 9:10 am  (#37) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1454
I have a good feeling new GEGL filter authors will show up in the near future and far surpass my abilities. I'm not that smart of a guy and it would not be suprising at all if a mathematician showed up and made GEGL do incredible things.

Just wait...


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Mon May 16, 2022 11:04 am  (#38) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Polar Coordinates

Image

polar-coordinates
   depth=0
   angle=235
   bw=FALSE
   top=TRUE
   polar=TRUE
   pole-x=1
   pole-y=1
   middle=TRUE

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Mon May 16, 2022 11:17 am  (#39) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Normal Map

Image

normal-map
   scale=10
   x-component=red
   y-component=red
   flip-x=FALSE
   flip-y=FALSE
   full-z=FALSE
   tileable=FALSE

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


Top
 Post subject: Re: What does GEGL graph do ?
PostPosted: Mon May 16, 2022 11:28 am  (#40) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4050
Fractal Trace

Image

fractal-trace
   
   X1=-1
   X2=-.50
   Y1=-1
   Y2=1
   JX=.50
   JY=.50
   depth=2
   bailout=10
   abyss-policy=loop

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


Top
Post new topic Reply to topic  [ 66 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Learn GEGL graph

65

No new posts Get use to using GEGL Graph syntax.I can't make a filter of everything

13

No new posts Attachment(s) Long time GEGL Graph Glitch solved. Need Help testing bevel update

2

No new posts Attachment(s) How to select color from light spectrum graph ?

2

No new posts Attachment(s) GEGL "Glass over Text' is STAND ALONE BUT NOW PART OF GEGL EFFECTS

5



* Login  



Powered by phpBB3 © phpBB Group