It is currently Thu Apr 25, 2024 11:01 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Make an Animated Grayscale Brush
PostPosted: Fri Mar 18, 2011 12:17 am  (#1) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Make an Animated Grayscale Brush

An animated brush is made from an image having more than one layer. In the brushes dialog you will see brushes with a red corner on the lower right. Those brushes are animated. Open the brushes dialog by Ctrl + Shift + B and find the Sparks brush. You will notice that the lower right corner of the Sparks brush is red. Click the brush and hold the left mouse button down. You will see the various "layers" of the brush in action. That is why it is called an animated brush. When you paint with an animated brush the different layers of the brush are painted as you paint with the brush. Close the Brushes dialog.

A regular, non-animated brush has the file extension .gbr which stands for gimp brush. An animated brush has the file extension .gih which stands for gimp image hose.

You will need saulgoode's combine background script. Click the link to get it: sg-combine-bg.scm and save it in your /.gimp-2.6/scripts folder. After you have saved the script, Filters > Script-Fu > Refresh Scripts.

If you saved your leaf.xcf file from making a grayscale brush open it now. If you did not save it or did not do the grayscale brush tutorial, go here and do Steps 1 - 6 in the Grayscale Brush Tutorial.

You will be rotating and using paths for your brush layers. You may wonder why you don't just rotate the image. Rotating an image makes the edges more "fuzzy" and you don't have the crisp edges a path makes.

Here is a zoomed image showing the difference between the turned image and the turned path.

Image

  1. Right-click the layer the leaf is on and choose Layer to Image Size.

  2. Right-click the leaf layer again and choose Alpha to Selection.

  3. Select > To Path

  4. Select > None

  5. Make sure the leaf layer is the one selected and press the Delete key. (Yes, you are deleting your leaf.)

  6. Rename the leaf layer #1, then duplicate that layer enough times so that you have 6 layers. The top layer will be #6. Click layer #1 so that it is the selected layer.

  7. Click the Paths tab :path in the Layers window.

  8. There will be a path there named Selection. Double-click the path name and name it #1. Press the Enter key and you will have a path named #1.

  9. Press the Duplicate Icon :dupe at the bottom of the Paths window and you will have a path named #2. With Path #2 selected, in the Toolbox click the Rotate Tool :rot. In the Rotate toolbox dialog, click the path icon so that the path will rotate.


    Image


  10. Click in the Image window and when the Rotate dialog comes up, make the Angle 60 and click the Rotate button. You will see your path rotate.

    Image


  11. Duplicate path #2 so that you have path #3 (it will be automatically selected). Click the Rotate Tool, click in the Image window and, again, make the angle 60.

  12. Duplicate path #3, and rotate Path #4.

  13. Do that for each path by duplicating the last one rotated and rotate each 60 degrees. When you have reached path #6 and rotated it you are finished with rotating paths.

  14. Click Path #1 so that it is selected, choose Path to Selection :select in the paths window.

  15. Click the Layers tab and click layer #1 to make sure it is the active layer. Make the Foreground color black if it is not already. Select the bucket tool. Be sure that fill whole selection is selected in the Bucket Fill dialog. Click the selection in layer #1 to fill it with black.

  16. Click layer #2, click the paths tab and choose path #2. Path to Selection. Layers tab, fill layer #2 with black.

  17. Click layer #3, click the paths tab and select path #3. Path to selection. Layers tab, fill layer #3 with black.

  18. Click layer #4, click the paths tab, click path #4. Path to selection. Layers tab, fill layer #4 with black.

  19. Click layer #5, click the paths tab, click path #5. Path to selection. Layers tab, fill layer #5 with black.

  20. Click layer #6, click the paths tab, click path #6. Path to selection. Layers tab, fill layer #6 with black.

  21. Select > None. The worst is over. Sit back and take a quiet few moments. You need it. :hehe

    This is how your layers and paths windows look now.

    Image


  22. In the Layers window turn the eye off next to the white background layer.

  23. Layer > New from Visible. You will now have a new layer named Visible. Select the Visible layer, Image > Autocrop Image.

  24. Delete the Visible layer.

  25. Make the background layer visible. Filters > Animation > Combine background. Each of your layers now have a white background. Delete the white background layer.

  26. Image > Mode > Grayscale.
    Now it's time to save your animated brush.

  27. File > Save As > leafbrushanimated.gih. Browse to the /.gimp-2.6/brushes folder and click Save.

  28. In the Save as Brush Pipe dialog use the following settings that I have marked with red arrows:

    Spacing (percent) 100
    Description - Leaf Brush Animated
    Ranks - 6 which are the number of cells which are the number of layers.
    In the dropdown choose incremental. The incremental setting makes the brush rotate in an orderly manner.

    Image

  29. Close the brush image. Ctrl + Shift + B, click the Refresh button :refresh. You are finished and ready to paint with your new animated brush.

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: Make an Animated Grayscale Brush
PostPosted: Fri Mar 18, 2011 1:36 am  (#2) 
Offline
GimpChat Member

Joined: Mar 07, 2011
Posts: 206
cool turkey day


Top
 Post subject: Re: Make an Animated Grayscale Brush
PostPosted: Fri Mar 18, 2011 3:40 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Nice tutorial O! :)

_________________
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: Make an Animated Grayscale Brush
PostPosted: Fri Mar 18, 2011 9:46 am  (#4) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4739
Makes me wonder...

I agree with you that paths are more resilient than bitmaps when it comes to scaling and rotation.

But... when I need to produce 6 rotations of the same object, instead of applying a small rotation on the result of the previous rotation, I apply an increasing rotation on the original object. So all my objects have been subjected to at most one rotation and aren't too blurred.

Meanwhile, the path you get from a selection is far from perfect: produce text from the text tool, create a path from the text, and a path from the resulting alpha-to-selection. Then compare them...

So the real question is: which is better:
  • bitmap->rotation->bitmap
  • bitmap->selection->path->rotation->selection->fill->bitmap

The attachment shows that rotating the bitmap directly may give better results (and that the cubic algorithm produces better results than sinc... (no artifacts))

Of course, if you have a good path to start with (for instance from the text tool), keep the path because
  • path->rotation->selection->fill->bitmap
will give better results than
  • path->selection->fill->bitmap->rotation->bitmap

No letters have been harmed while working on the attachment :)


Attachments:
Rotate.xcf [21.27 KiB]
Downloaded 327 times

_________________
Image
Top
 Post subject: Re: Make an Animated Grayscale Brush
PostPosted: Fri Mar 18, 2011 10:57 am  (#5) 
Offline
GimpChat Member

Joined: Feb 06, 2011
Posts: 342
Here are my brushes I made animated. I had them in my file I just made some changes to what I wanted. :paint

I liked the ones canadian leaf and music notes notes in a previous tut from O and Molly. thanks for the brushes. :tyspin

Liana

I added my brushes hope it works :)


Attachments:
oak leaf.zip [89.95 KiB]
Downloaded 343 times
File comment: oak leaf..one colored on the edges the other solid.
animated oak leaves.png
animated oak leaves.png [ 79.19 KiB | Viewed 6744 times ]
Top
 Post subject: Re: Make an Animated Grayscale Brush
PostPosted: Fri Mar 18, 2011 11:01 am  (#6) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Those are very nice, Liana. Thank you for sharing your brushes with us.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Make an Animated Grayscale Brush
PostPosted: Fri Mar 18, 2011 11:05 am  (#7) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
ofnuts wrote:
Makes me wonder...

I agree with you that paths are more resilient than bitmaps when it comes to scaling and rotation.

But... when I need to produce 6 rotations of the same object, instead of applying a small rotation on the result of the previous rotation, I apply an increasing rotation on the original object. So all my objects have been subjected to at most one rotation and aren't too blurred.

Meanwhile, the path you get from a selection is far from perfect: produce text from the text tool, create a path from the text, and a path from the resulting alpha-to-selection. Then compare them...

So the real question is: which is better:
  • bitmap->rotation->bitmap
  • bitmap->selection->path->rotation->selection->fill->bitmap


Your points are well taken ofnuts and I understand what you are saying.

This is an image I made of the brushes while I was doing the tutorial and the leaves were each separately rotated in the first row leaving the first layer at 0, then using 60, 120, 180, -120 and -60 for the rotation degrees.

There is not a great difference in the results of the two ways. I just keep thinking of all of the extra antialiased pixels created around the image when the layers are rotated. When the brushes are scaled to make them larger or smaller, those extra semi-transparent pixels have to go somewhere and they add to blurriness around the image.

Image

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Assignment: create an animated brush to make clock face.

9

No new posts Attachment(s) Make a brush - Make a mandala

311

No new posts Attachment(s) Animated brush

8

No new posts Attachment(s) Animated Rope Brush

17

No new posts Attachment(s) Animated Chain Brush

16



* Login  



Powered by phpBB3 © phpBB Group