Share this topic on AskShare this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on TwitterShare this topic on YahooShare this topic on Google buzz

Author Topic: [Script-Fu] Animated Fire  (Read 8539 times)

0 Members and 1 Guest are viewing this topic.

Offline paladin169

  • Member
  • **
  • Posts: 1,601
  • Karma: 0
  • Cookies!
Re: [Script-Fu] Animated Fire
« Reply #20 on: May 03, 2008, 12:47:29 AM »
Oh snap, bart is burning in hell

cool DG
Formerly sponge!


Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Fire
« Reply #21 on: May 06, 2008, 12:27:12 PM »
Script has been modified to allow you to add the active layer in your existing image to the animation and set its blend mode.  You should do all the desired effects to create your active layer ("logo") first and adjust its size as desired because the script will use the dimensions of the "logo layer" to create the animation size and the logo will be positioned in the final animation where it's positioned in the original image.  If you want to see how the final outcome will look without having to generate a complete animation, I've changed the script to let you just do a single layer image if you want.

Here's some new previews:

Normal Mode



Overlay Mode



Value Mode




I'll add masking capability later (as void posted in his example), but that will be later....spent way too much time on this today.    Also, script 2.2 has NOT been updated yet.

Enjoy.  Let me know if you have any suggestions.

A





Posted on: May 03, 2008, 10:31:24 PM
I've now added functionality to allow the user to mask out an area.  The mask doesn't have to be filled with a black background, it can simply be white on a transparent background.  The example mask I've shown below is white on black for example purposes.  Also, there are two options with the mask: a transparent background around the masked off area or filling the area outside of the masked area with color.  In both cases, you need to select a background color.  The reason for choosing a background color with the transparent option is to let GIMP fill in the anti-aliased areas with a little bit of color to help the animation blend in with the background and reduce jagged edges.  So, if the background color on your web page is blue, choose a blue color.  This will require some experimentation.  Lastly, I've told the script to disable any selections that are active prior to running the script.  They will be re-enabled after the script is run.

Here's the previews:

Mask option with transparency enabled



Mask option, but filling entire background with chosen color



Mask



Let me know if the script causes any problems or if you'd like to see features improved/added.  I'll do what I can.  The script for 2.2 will be fixed later.
« Last Edit: May 06, 2008, 12:33:57 PM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline Darth_Gimp

  • Number One
  • *****
  • Posts: 2,883
  • Karma: 0
  • Faith, Folk, Family!
    • lds-jedi.deviantart.com
    • Odinic Rite
Re: [Script-Fu] Animated Fire
« Reply #22 on: May 06, 2008, 03:00:05 PM »
Looking good Fence. Not sure if the script can do what I did with bart.. but its come a long way already!!
GimpDome Group: http://gimpdome.deviantart.com/
My DeviantArt: http://lds-jedi.deviantart.com/

There's no worse feeling than that millisecond you're sure you are going to die after leaning your chair back a little too far.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Fire
« Reply #23 on: May 06, 2008, 03:17:09 PM »
Thanks!  What exactly did you do with Bart?  Is it a mask from top to bottom? (ie...completely white on top blending to a gray on the bottom).  If that's the case, you're right, the script isn't set up to do that, although it could be; however, the way it's set up allows the user to have the maximum control over the result and let the script do the legwork very quickly. 

I did a quick markup to Bart doing what I thought you might have done: added a layer mask - white at top blending to a gray color at the bottom.  Then, when I was satisfied with the way the mask looked, I applied the layer mask to the layer and then ran the script using Normal Mode as my blend option.  This is what I came up with. 



But, as I said, I wasn't sure how you accomplished yours.
« Last Edit: May 06, 2008, 03:54:33 PM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline Darth_Gimp

  • Number One
  • *****
  • Posts: 2,883
  • Karma: 0
  • Faith, Folk, Family!
    • lds-jedi.deviantart.com
    • Odinic Rite
Re: [Script-Fu] Animated Fire
« Reply #24 on: May 06, 2008, 04:50:16 PM »
basically, I put one copy of the render for each flame layer. Then, I duplicated the layer, moved it above the render, set it to screen. Merge render with original layer, merge screen layer to original. Rine and repeat for each layer.
GimpDome Group: http://gimpdome.deviantart.com/
My DeviantArt: http://lds-jedi.deviantart.com/

There's no worse feeling than that millisecond you're sure you are going to die after leaning your chair back a little too far.


Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Fire
« Reply #25 on: May 06, 2008, 04:58:52 PM »
Oh, ok, I understand.....almost a Bart sandwhich?  :D  I wonder if I could set up the script to do that without too much difficulty.  If not, it would be easy to code it all by itself.  I'll give it a shot.

A
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline a2j3

  • Member
  • **
  • Posts: 501
  • Karma: 0
Re: [Script-Fu] Animated Fire
« Reply #26 on: May 07, 2008, 06:40:58 AM »
Fence nice job again on this script. It looks awesome.  :D @Darth I love what you did with Bart. 

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Fire
« Reply #27 on: May 07, 2008, 02:50:14 PM »
Thanks, Jo!

I was able to add your concept with no trouble at all, Darth!  (For those who haven't read the whole thread, Darth manually placed his render in between two flame layers and set the upper flame layer to screen before merging them all together.  The idea gives the appearance that the render is IN the flames, not above or blended with the flames).  Darth, you might want to try it with your original Bart to see if it works correctly.  Thanks for the idea.  I've credited you and the concept in the script "comments".  I've tweaked how the noise is added to smaller images, so that the flames look more realistic when the image is a certain pixel size.  Using the tutorial settings in smaller images, gives the flames a "taller" or "longer" look and I didn't think it was as "real" as it could be. It'll never be perfect, but hopefully it works out well for everyone.  Let me know if you run into any snags with it.

It's back to "break" time for me.  Until then, take care.

Art
« Last Edit: May 08, 2008, 06:56:55 AM by fencepost »
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.

Offline Darth_Gimp

  • Number One
  • *****
  • Posts: 2,883
  • Karma: 0
  • Faith, Folk, Family!
    • lds-jedi.deviantart.com
    • Odinic Rite
Re: [Script-Fu] Animated Fire
« Reply #28 on: May 08, 2008, 12:42:24 AM »
You have one awesome script here Fence. Glad my experimenting helped out!
GimpDome Group: http://gimpdome.deviantart.com/
My DeviantArt: http://lds-jedi.deviantart.com/

There's no worse feeling than that millisecond you're sure you are going to die after leaning your chair back a little too far.

Offline fencepost

  • Member
  • **
  • Posts: 2,626
  • Karma: 0
    • fence-post.deviantart.com
Re: [Script-Fu] Animated Fire
« Reply #29 on: May 08, 2008, 06:57:19 AM »
Thanks, Darth!  Glad it worked out.  :)
I'd rate you as an upper-middle-lower-mod with pro-novice-inter tendencies.....and a twist of lime!  Of course, my rating scale is completely objectively subjective, but ALWAYS consistently inconsistent.


Tags: