It is currently 23 Feb 2020, 12:13


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Custom Font Lighting Effects GT Style for Gimp 2.10

Share your Python Fu Scripts/plug-ins for GIMP here
Post Reply
skinnyhouse
Script Coder

Custom Font Lighting Effects GT Style for Gimp 2.10

Post#1 by skinnyhouse » 11 May 2019, 16:20


LE-stuff.zip
(6.57 MiB) Downloaded 52 times
The zipped folder contains the Lighting Effects GT Style plug-in which needs to be placed in your user plug-in folder. The filter itself can be accessed from Filters>>Custom Font Tools>>Custom Font Lighting Effects GT Style v0.01...

The zipped folder also contains a test file resource (Env_Map_Test_Square.xcf) which contains some pattern layers gathered from various sources and just four simple custom font characters.

Here is a copy of this help guide in pdf format:
The filter was originally inspired by some of Alan's custom fonts, here on GimpLearn, that feature strong highlights - for example his custom font #381.

This Gimp 2.10 plug-in uses the Gimp Lighting Plug-in to apply a range of effects to all the characters in a custom font file.

It broadly follows the techniques employed by GnuTux in his Environment Mapped Text tutorial on GimpChat in 2013.

http://gimpchat.com/viewtopic.php?f=23& ... 17df8732e3

Unfortunately, as Graechan bemoaned way back in 2010, the Lighting plug-in does not work as it should in non-interactive mode i.e. when used from within a script, and so I have had to be creative and use additional mode methods to apply a patterned layer for the light effects to work with.

In lighting plug-in terms, this patterned or textured layer is used as an environment map but, unlike the real filter, it requires an alpha channel to work properly; it will still work without an alpha channel but it will not produce very good results. If you are not sure if the layer has an alpha channel, it will be displayed in bold text in the layer stack if it does not have one.

To see the filter work, open up an existing custom font file (or use the supplied test file which has only four characters in). The custom font can be plain or decorative – since the plug-in will initially use the outlined shape of each character as its base. If you use your own font add a patterned layer – preferably one bigger than the image height and width – to your image layer stack and click on ‘OK’.

The filter dialog is a large one and if your screen resolution is less than 1080 px high you will probably have to make use of some sort of solution to add a scroll bar to the dialog. Search Gimpchat for an answer to this problem or follow the link here:
http://gimpchat.com/viewtopic.php?f=9&t=13714
I have tried hard to shorten the 24 option dialog but sadly the plug-in won hands down.
01_dialog.png
01_dialog.png (87.38 KiB) Viewed 1277 times
Below are example outputs using the default options. Just drag the texture/pattern layer you want the filter to use to the top of the other patterned layers in the layer dock and click ‘OK’.
02_layer_dock.png
02_layer_dock.png (20.25 KiB) Viewed 1277 times
'Master Bump with alpha copy' pattern result
03_eg1.png
03_eg1.png (130.56 KiB) Viewed 1277 times
'Plain Orange' result
04_eg2.png
04_eg2.png (50.71 KiB) Viewed 1277 times
'envmap_red.jpg copy' pattern result
05_eg3.png
05_eg3.png (173.75 KiB) Viewed 1277 times
'Gold_Sparkle' pattern result
06_eg4.png
06_eg4.png (285.53 KiB) Viewed 1277 times
A quick look at the workflow of the filter may help to explain some of options from the dialog.

After checking that a suitable layer exists to use as the environment layer the filter makes a copy of that layer...
07_env_layer.png
07_env_layer.png (265.12 KiB) Viewed 1277 times
...and then attempts to centre it.
If an appropriate option (dialog nos 16 - 18) is checked it will distort this pseudo environment layer with the selected Gimp plug-in. The Apply lens filter is selected by default with a refraction index of 2.0. but you could also introduce some distortion using the Polar coords filter option.
09_env_layer_deformed.png
09_env_layer_deformed.png (202.12 KiB) Viewed 1277 times
Then the filter creates a filled version of the character on a white background (represented by the rectangle below) in the chosen shade of grey (dialog # 10)...
10_grey_fill.png
10_grey_fill.png (3.27 KiB) Viewed 1277 times
...before adding some of the blur (dialog # 14)…
11_grey_blur.png
11_grey_blur.png (3.98 KiB) Viewed 1277 times
...and a bump-mapped version of the environment layer (dialog # 11)...
12_grey_bumped.png
12_grey_bumped.png (39.35 KiB) Viewed 1277 times
...before applying a final blur.
13_grey_final_blur.png
13_grey_final_blur.png (26.49 KiB) Viewed 1277 times
This is now the temporary character bump-map layer that the lighting plug-in can use to create its magic – shown below with a yellow light taken from the foreground colour (dialog # 1).
14_lighting.png
14_lighting.png (115.67 KiB) Viewed 1277 times
The next step is to attempt to try and remove any artifacts created during the bump-map and lighting process using the selective gaussian blur filter (dialog # 20).

Then the environment layer is added and applied to the bump-map layer using the chosen mode (dialog # 19). Be aware that the new, default modes are used only if the old mode is set to ‘Normal’.
15_apply_env.png
15_apply_env.png (165.47 KiB) Viewed 1277 times
When this process is completed, the filter moves on to the next character in the custom font file.

At the end of that, the filter adds one extra layer named legend as a summary of all the dialog options used in text form. I got fed up trying to remember which options and values I had used to produce a certain effect.
16_legend.png
16_legend.png (45.14 KiB) Viewed 1277 times
I have posted the rest of the guide in the Tutorials section of GimpLearn. Best of luck!
1

Wallace
Global Moderator

Post#2 by Wallace » 12 May 2019, 23:22


You'r Custom Font Tool, has come a long way and evolved into a spectacular tool.
Have you given any thought, to contacting the GIMP Developers about it?
To possibly have the tool included, within some future GIMP update?
Image
0

skinnyhouse
Script Coder

Post#3 by skinnyhouse » 13 May 2019, 06:34


Thanks for your vote of confidence Wallace - very much appreciated.

The trouble is that there is no real innovation in what I have done with the font tools - it is basically putting together lots of simple steps or actions to speed up the CF making process using tools/plug-ins that already exist in Gimp.
1

Wallace
Global Moderator

Post#4 by Wallace » 13 May 2019, 16:46


skinnyhouse wrote:
13 May 2019, 06:34
Thanks for your vote of confidence Wallace - very much appreciated.

The trouble is that there is no real innovation in what I have done with the font tools - it is basically putting together lots of simple steps or actions to speed up the CF making process using tools/plug-ins that already exist in Gimp.
I understand what you're saying.
However, it would make a nice alternative font tool,
which users can build upon.
If offered as a permanent feature within GIMP.
Image
0

Pat625
Tutorial Creator

Post#5 by Pat625 » 13 May 2019, 20:39


I can agree with you, Wallace. Skinnyhouse has developed a beautiful system for the fonts and continues to add and improve features. I do think the developers have formulated their priorities and it will take a long time to get it a permanent feature. In the meantime, if we continue to use it and keep it visible, it will continue. Anyone know how to do a PR campaign! :aw_shucks_purple: :idea:
1


GIMP/GL:  Tutorials | Tips | Questions | Interests | Script Requests
Recommendations:  Index | Top 10
Resources:  🡆 Python-Fu Plug-ins | Scheme-Fu Scripts | GIMP
Python:  Lessons | Questions | Exercises
The Arts:  GIMPed | GIMPed Photos | Other | Contests | Public Domain Images | Isolated Images | Blender
Inkscape
Social:  Say Hello | Anything Goes | Shares | FCSP

Post Reply
  • Similar Topics
    Replies
    Views
    Last post
• Featuring Members' Works (Image Attachments) •
1: member
2: member
3: member
4: member
5: member

Who is online

Users browsing this forum: No registered users and 14 guests