Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Can Any Script Coder Produce 'Exploding Text'?

Thu Jun 13, 2019 1:05 am

This could be hard but I hope there is a coder out there that can make 'exploding text' or (exploding any image :)
This was made by racer-x with Aviutl outside of Gimp.

Image


Thanks Wallace and racer-x for getting me thinking about this.

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 4:14 pm

Quick attempt to achieve a similar effect using G'MIC.
I am not very happy (the effect is not very similar) - but some basis for experimenting is already ...

In menu GIMP: Filters/Animation/Explode text using G'MIC...

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 6:07 pm

Thanks for this plugin Marero. It's very clever how the python script calls G'MIC filters.

AviUtl can explode any image not just text. It works really well on that disliked dictator :)
Racer-x discovered AviUtl and made tutorials on using it. The software is from Japan and goes back to the late 1990's. It's quite usable although Windows only.

The software does lots of other effects. The explosions has an element called 'gravity'. This defines how disintegrated particles fall to the ground. It can be set to 0 which makes the particles only fly outwards from the explosion center while 10 makes them fall straight down. I found the center of the explosion can be set by X and Y values. This is great for exploding a picture right between the eyes.

So the steps are - initial fracturing, movement of broken pieces out to the edge of the canvas, then slowly falling to ground.
AviUtl always replaces the background with black. It would be more realistic to explode a foreground object on the original background but this is really an animation task.

I think davici resolve can do effects like this but I haven't tried it.

Well done and thanks for the coding :bigthup

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 7:59 pm

Tas_mania wrote:AviUtl always replaces the background with black. It would be more realistic to explode a foreground object on the original background but this is really an animation task.

You just need to put the background in another video track(aka layer).

explode.gif
explode.gif (675.95 KiB) Viewed 3562 times

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 8:58 pm

Here's my attempt at the plugin:
Image

Is there a way to slow it down and to change the fire html color?

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 10:06 pm

I tried to eliminate the fire stroke,
but couldn't.
Text was also set to a purple hue.
However the text doesn't look purple to me.
I also chose the same color for the fire,
as the green background.
Some how there's red in the image.
The only colors I used were green and purple.


wallace_explode.gif
wallace_explode.gif (894.29 KiB) Viewed 3555 times

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 10:37 pm

Wallace wrote:
I tried to eliminate the fire stroke,
but couldn't.
Text was also set to a purple hue.
However the text doesn't look purple to me.
I also chose the same color for the fire,
as the green background.
Some how there's red in the image.
The only colors I used were green and purple.


wallace_explode.gif


How did you get the purple and green colors?

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 11:10 pm

mackenzieh wrote:
How did you get the purple and green colors?


By using purple for the text color and green for the backgrpund.
I also put the HTML code for the fire.
To the same green background color #07ff23.

Image

Screenshot (51)z.png
Screenshot (51)z.png (415.9 KiB) Viewed 3551 times

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 11:13 pm

Wallace wrote:
mackenzieh wrote:
How did you get the purple and green colors?


By using purple for the text color and green for the backgrpund.
I also put the HTML code in for the same green background color.

[ Image ]

Screenshot (51)z.png


Oh, okay. Now, back to my original questions, how can it be slowed down and can the html fire color be changed?

Re: Can Any Script Coder Produce 'Exploding Text'?

Thu Feb 06, 2020 11:29 pm

mackenzieh wrote:
Wallace wrote:
Oh, okay. Now, back to my original questions, how can it be slowed down and can the html fire color be changed?


At the bottom there is a Rename Layers setting.
That seems to have the delay time.
I guess you just change the milliseconds to whatever you like.
Image

I did change the HTML color to green,
by simply typing in the html code for the green I was using,
but somehow there is red in the image.

:hehe

Re: Can Any Script Coder Produce 'Exploding Text'?

Fri Feb 07, 2020 2:45 am

Wallace wrote:
mackenzieh wrote:
Wallace wrote:
Oh, okay. Now, back to my original questions, how can it be slowed down and can the html fire color be changed?


At the bottom there is a Rename Layers setting.
That seems to have the delay time.
I guess you just change the milliseconds to whatever you like.
[ Image ]

I did change the HTML color to green,
by simply typing in the html code for the green I was using,
but somehow there is red in the image.

:hehe


I will try changing the colors and the milliseconds the next time I try out the plugin. Thanks, Wallace. :)

Re: Can Any Script Coder Produce 'Exploding Text'?

Fri Feb 07, 2020 8:46 am

Thank you to all testers. :hi5

Some remarks on the concept of development:

1. For startup text I used plug-in-bump-map.
I'm sorry I forgot to add that it doesn't work without the "patch" using the Gimp 2.8 version.
Then I applied the Gmic filter Patterns -> Cracks.
For the beginning, I only assumed the red color - but now you can also choose it.
Why HTML?
The color output Gimp rgb(r, g, b) -> r, g, b = 0÷1 does not match the color input in G'MIC rgba (r, g, b, a) -> r, g, b, a = 0÷255 - but both can use HTML (maybe there is another solution?)

2. For fire-lines I used GMIC -> Testing -> Samj -> Rendering -> Traits Strokes

There are many other possibilities:

- elsamuko-escape-lines.scm
version (0.3) fixed for Gimp 2.10 with new Autocenter option:
viewtopic.php?f=9&t=17996#p247091

- Speedline Plug-in (speedline.exe)
viewtopic.php?f=7&t=7769

3. For explodind (defoormations) I used GMIC -> Deformations -> Crease
This should be replaced by some other deformation (any ideas?)

Re: Can Any Script Coder Produce 'Exploding Text'?

Fri Feb 07, 2020 8:05 pm

Thanks racer for a way of putting a background into Aviutl.

It's quite possible G'MIC can produce the 3D effects
Also G'MIC can work with multiple layers. I may check-out Marero's script and see what it's doing. The 'Fire' filter is not really doing it for me. A G'MIC 'physics engine' would be nice to have..... :grinyes

Re: Can Any Script Coder Produce 'Exploding Text'?

Fri Feb 07, 2020 11:14 pm

Tas_mania wrote:Thanks racer for a way of putting a background into Aviutl.

It's quite possible G'MIC can produce the 3D effects
Also G'MIC can work with multiple layers.
I may check-out Marero's script and see what it's doing.
The 'Fire' filter is not really doing it for me.
A G'MIC 'physics engine' would be nice to have..... :grinyes

I'm not feeling the fire either.
However,
it's a super idea for a plug-in.
:bigthup

Re: Can Any Script Coder Produce 'Exploding Text'?

Sat Feb 08, 2020 6:49 am

G'mic "Edges on Fire" looks kinda cool. Here I converted the Eagle into a Fire Bird.

firebird.gif
firebird.gif (793.81 KiB) Viewed 1835 times

Re: Can Any Script Coder Produce 'Exploding Text'?

Sun Feb 09, 2020 12:48 am

For previous visit to exploding text:

viewtopic.php?f=11&t=17495

Re: Can Any Script Coder Produce 'Exploding Text'?

Sun Feb 09, 2020 2:08 pm

Thank You Pat625. I missed this link. :roll:

Fun continues.
I tried a different G'MIC effect: "samj_Random_Small_Deformations" - unfortunately just a little better. :hoh
Post a reply