GIMP Chat
http://gimpchat.com/

What Broke the Stencil Chrome Filter?
http://gimpchat.com/viewtopic.php?f=9&t=20071
Page 1 of 1

Author:  David Wood [ Thu Aug 11, 2022 5:04 pm ]
Post subject:  What Broke the Stencil Chrome Filter?

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

Author:  Pocholo [ Fri Aug 12, 2022 12:45 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

There is nothing wrong in my side GIMP 2.10.32:
Image

Author:  Rod [ Fri Aug 12, 2022 1:12 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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?

Author:  Issabella [ Fri Aug 12, 2022 2:06 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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 1054 times ]

Author:  Rod [ Fri Aug 12, 2022 3:56 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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!

Author:  Issabella [ Fri Aug 12, 2022 4:15 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

Is this one. I thank the author again as I love that look.

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

Author:  rich2005 [ Fri Aug 12, 2022 4:22 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

Same thread but there is an experimental version here:
viewtopic.php?f=9&t=19850#p273707

Author:  Rod [ Fri Aug 12, 2022 4:37 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

Issabella wrote:
Is this one. I thank the author again as I love that look.

Thank you! :) :hi5

Author:  Pocholo [ Fri Aug 12, 2022 6:57 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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.

Author:  Jappaloe63 [ Fri Aug 12, 2022 9:25 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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

Author:  David Wood [ Fri Aug 12, 2022 12:49 pm ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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

Author:  nelo [ Sat Aug 13, 2022 4:33 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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

Author:  Jappaloe63 [ Sat Aug 13, 2022 6:24 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

These two also give a nice result!

Attachments:
chrome.png
chrome.png [ 98.41 KiB | Viewed 758 times ]
2428_mhchrome.scm [5.91 KiB]
Downloaded 40 times
chrome-logo.scm [4.87 KiB]
Downloaded 42 times

Author:  Krikor [ Fri Sep 02, 2022 10:39 am ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

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 687 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 687 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

Author:  contrast_ [ Tue Feb 13, 2024 8:26 pm ]
Post subject:  Re: What Broke the Stencil Chrome Filter?

Want me to recreate this in GEGL?

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