It is currently Tue Jul 02, 2024 3:22 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: What Broke the Stencil Chrome Filter?
PostPosted: Thu Aug 11, 2022 5:04 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Mar 24, 2014
Posts: 137
Location: New York
Yo! I posted this over on Pixls.us as well but since several of you like to get down and dirty with scripting I'm post it here too. ;)

Hello everyone, David here trying to get some insight into how a staple Gimp filter has turned into a broken mess. Right now as some have noticed I have been re-recording and updating my old Gimp tutorials on my Youtube channel since many are outdated and impossible to follow.

The next one in need of an update is 'How to Make a Jewelry Style Logo/Text' however I have run into a problem. For this effect to work we use the Stencil Chrome filter to create the metallic border before adding the gemstone center.

To demonstrate the issue, here is a quick example:

We start with a grayscale image like this one.

Image

We then apply the Stencil Chrome filter, we're leaving the settings at default values.

Image

The result is an image with 4 Layers: a textured background, a drop shadow, the highlight (gold) layer, and the chrome layer.

Image

Here is where the problem occurs. For comparison here are 4 images.

The first is with Gimp 2.4 and it is what the image should produce.

Image

As you can see it takes the white pixels and turns it into a metallic gray with a gold border.

The second example is with Gimp 2.6.

Image

This is very similar to the 2.4 image with some slight changes in the reflection's displacement. This is still an acceptable result.

Now, we try 2.8 and the first problem pops up.

Image

The gold border is completely missing, as the layer masks for the grey metal and the gold metal are exactly the same, instead of the gold mask's being slightly grown for the border.

BUT... the problem gets EVEN WORSE! Let's look at the monstrosity that is Gimp 2.10.

Image

I... I don't... ugh, what is this?

Here are the 2 immediate issues that I can see just from looking at the layers.

1. Both the chrome and the highlight layers have been blown out with a high exposure resulting in too many empty areas that have no shadows/reflections.

2. The border on the highlight layer has been grown by an absurd amount instead of only a few pixels. This also obscures the drop shadow.

Since so much of the code has changed and I only know how to make minor edits I come to you guys for assistance. I've created a side by side comparison for anyone who knows how to fully read script-fu.

https://www.textcompare.org/?id=62f57b6 ... 8756de1f2f

Thanks in advance if you can solve the mystery. ;)

_________________
Image


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: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 12:45 am  (#2) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
There is nothing wrong in my side GIMP 2.10.32:
Image

_________________
https://www.deviantart.com/pocholo17
Image


Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 1:12 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
David Wood wrote:
Yo! I posted this over on Pixls.us as well but since several of you like to get down and dirty with scripting I'm post it here too. ;)

Hello everyone, David here trying to get some insight into how a staple Gimp filter has turned into a broken mess. Right now as some have noticed I have been re-recording and updating my old Gimp tutorials on my Youtube channel since many are outdated and impossible to follow.

The next one in need of an update is 'How to Make a Jewelry Style Logo/Text' however I have run into a problem. For this effect to work we use the Stencil Chrome filter to create the metallic border before adding the gemstone center.

To demonstrate the issue, here is a quick example:

We start with a grayscale image like this one.

[ Image ]

We then apply the Stencil Chrome filter, we're leaving the settings at default values.

[ Image ]

The result is an image with 4 Layers: a textured background, a drop shadow, the highlight (gold) layer, and the chrome layer.

[ Image ]

Here is where the problem occurs. For comparison here are 4 images.

The first is with Gimp 2.4 and it is what the image should produce.

[ Image ]

As you can see it takes the white pixels and turns it into a metallic gray with a gold border.

The second example is with Gimp 2.6.

[ Image ]

This is very similar to the 2.4 image with some slight changes in the reflection's displacement. This is still an acceptable result.

Now, we try 2.8 and the first problem pops up.

[ Image ]

The gold border is completely missing, as the layer masks for the grey metal and the gold metal are exactly the same, instead of the gold mask's being slightly grown for the border.

BUT... the problem gets EVEN WORSE! Let's look at the monstrosity that is Gimp 2.10.

[ Image ]

I... I don't... ugh, what is this?

Here are the 2 immediate issues that I can see just from looking at the layers.

1. Both the chrome and the highlight layers have been blown out with a high exposure resulting in too many empty areas that have no shadows/reflections.

2. The border on the highlight layer has been grown by an absurd amount instead of only a few pixels. This also obscures the drop shadow.

Since so much of the code has changed and I only know how to make minor edits I come to you guys for assistance. I've created a side by side comparison for anyone who knows how to fully read script-fu.

https://www.textcompare.org/?id=62f57b6 ... 8756de1f2f

Thanks in advance if you can solve the mystery. ;)

If you ask me Dave i would say it's GEGL. Because many Script-Fu call on older plug-in settings. Those settings can be completely incorrect for the new GEGL filters. Does that scm call any plug-ins in it's code?

_________________
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: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 2:06 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12707
Location: Spain, Aragón
I don't get a good result with Chrome, no a nice chrome look.

I find the only great chrome look I like is this and I thank the auhor for this one.


Attachments:
ya Chrome.jpg
ya Chrome.jpg [ 85.45 KiB | Viewed 1039 times ]

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 3:56 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Issabella wrote:
I don't get a good result with Chrome, no a nice chrome look.

I find the only great chrome look I like is this and I thank the auhor for this one.

Issabella if you don't mind me asking, which script is that? That looks great!

_________________
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: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 4:15 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Mar 01, 2014
Posts: 12707
Location: Spain, Aragón
Is this one. I thank the author again as I love that look.


Attachments:
yaChrome299.zip [3.7 KiB]
Downloaded 44 times

_________________
Image

Gimp 2.10.30(samj) portable _ OS Windows 10 Home_ 64bits
Don’t be afraid to start over. It’s a new chance to rebuild what you want.
Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 4:22 am  (#7) 
Offline
GimpChat Member

Joined: Mar 04, 2011
Posts: 2436
Same thread but there is an experimental version here:
viewtopic.php?f=9&t=19850#p273707

_________________
Image


Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 4:37 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Issabella wrote:
Is this one. I thank the author again as I love that look.

Thank you! :) :hi5

_________________
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: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 6:57 am  (#9) 
Offline
GimpChat Member

Joined: Jul 28, 2018
Posts: 1196
But David is referring to the default "Stencil Chrome" filter found: Filters/Decor. You changed the subject, the Chrome script is a different script and effect.

_________________
https://www.deviantart.com/pocholo17
Image


Last edited by Pocholo on Fri Aug 12, 2022 9:32 am, edited 1 time in total.

Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 9:25 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2020
Posts: 343
Location: The Netherlands
There are many options, but in my opinion they all give the same result in the end!
Sorry, didn't look closely. it is solved


Last edited by Jappaloe63 on Sat Aug 13, 2022 10:51 am, edited 2 times in total.

Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Fri Aug 12, 2022 12:49 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Mar 24, 2014
Posts: 137
Location: New York
Pocholo wrote:
There is nothing wrong in my side GIMP 2.10.32:
[ Image ]


You've got the filter backwards though, the text should be chrome and the background the textured pattern.

vitforlinux wrote:
Stencil Chrome in Gimp 2.10 is sensible to brush size... change size change effect.


Oh wow, so that's the reason for the super weird border growth. I've wonder why the script suddenly is using brush size when it didn't before. And how is anyone supposed to notice if there's no mention of it in the script dialog box?

So brush size effects the border, but what about how blown out the environment maps are? Most of the nice reflections are missing. The also seem to have been inverted?

Image

_________________
Image


Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Sat Aug 13, 2022 4:33 am  (#12) 
Offline
GimpChat Member
User avatar

Joined: Sep 27, 2016
Posts: 345
Location: Germany, BW
David Wood wrote:
Thanks in advance if you can solve the mystery. ;)


David, try this corrected version. Maybe I could solve it. At least it works here.
Attachment:
chrome-it-210.scm.zip

_________________
Regards
nelo

(Gimp 2.10 on Linux Mint MATE 20.1)


Last edited by nelo on Sun Aug 14, 2022 1:24 pm, edited 2 times in total.

Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Sat Aug 13, 2022 6:24 am  (#13) 
Offline
GimpChat Member
User avatar

Joined: Jan 06, 2020
Posts: 343
Location: The Netherlands
These two also give a nice result!


Attachments:
chrome.png
chrome.png [ 98.41 KiB | Viewed 743 times ]
2428_mhchrome.scm [5.91 KiB]
Downloaded 39 times
chrome-logo.scm [4.87 KiB]
Downloaded 41 times
Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Fri Sep 02, 2022 10:39 am  (#14) 
Offline
GimpChat Member

Joined: Dec 19, 2018
Posts: 158
David Wood wrote:
Yo! I posted this over on Pixls.us as well but since several of you like to get down and dirty with scripting I'm post it here too. ;)

Hello everyone, David here trying to get some insight into how a staple Gimp filter has turned into a broken mess. Right now as some have noticed I have been re-recording and updating my old Gimp tutorials on my Youtube channel since many are outdated and impossible to follow.

The next one in need of an update is 'How to Make a Jewelry Style Logo/Text' however I have run into a problem. For this effect to work we use the Stencil Chrome filter to create the metallic border before adding the gemstone center.

[...]

Thanks in advance if you can solve the mystery. ;)


Issabella wrote:
I don't get a good result with Chrome, no a nice chrome look.

I find the only great chrome look I like is this and I thank the auhor for this one.


My Gimp only has this filter in the Alpha to Logo version.
The results I got are far from what I've seen posted by other users in years past. :(

The size of the brushes directly influences the final result.
The Script uses brushes that in my Gimp's case weren't even available in the brush dialog; are in a folder - (gimp-obsolete-files).
Attachment:
StencilChromedel.jpg
StencilChromedel.jpg [ 574.71 KiB | Viewed 672 times ]

I needed to change the name of this folder so that these brushes become visible inside the Gimp (I removed the hyphens "-").

Fortunately rich2005 and paynekj (Kevin) fixed the text version. The version provided by them works fine with my Gimp. Thank you gentlemen!
Attachment:
StencilChrome02del.jpg
StencilChrome02del.jpg [ 96.07 KiB | Viewed 672 times ]

Issa, I tried this version you provided on the link (ya chrome) but the result in my Gimp was pretty bad.

But maybe you would like to test Graechan's version (Shiny Chrome), although old one works excellently here!

Attached are two versions of Stencil Chrome (for text only - no alpha-to-logo) and Shiny Chrome.

I also tested the Nelo version (chrome-it-210.scm.zip) but it didn't work here.


Attachments:
File comment: sota and shiny chrome 3 files .scm
Chrome-Stecil-Shiny.zip [7.91 KiB]
Downloaded 43 times
Top
 Post subject: Re: What Broke the Stencil Chrome Filter?
PostPosted: Tue Feb 13, 2024 8:26 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: Oct 31, 2020
Posts: 1455
Want me to recreate this in GEGL?


Top
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) GEGL CHROME METALLIC TEXT STLYLING FILTER!

19

No new posts Many image links of mine are broke because Discord changed hotlinkURLS

1

No new posts Attachment(s) Gimp 2.99's master branch broke all color presets for my plugins

2

No new posts Attachment(s) anybody have a white chrome looking emap?

5

No new posts Yet Another Chrome (yaChrome) for Gimp 2.10 and 2.99.14/15

3



* Login  



Powered by phpBB3 © phpBB Group