It is currently Thu Mar 28, 2024 11:06 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: GAP - Spinning Striped Pole
PostPosted: Sat Jul 23, 2011 8:44 pm  (#1) 
Offline
GimpChat Member

Joined: Dec 20, 2010
Posts: 174
Location: Wherever the voices in my head tell me I am.
This may be one of the easier of my GAP tutorials to follow. Here is what we are making:

Image

Frames Modify

One of the features of this tutorial is you will be using the Frames Modify plug-in for GAP. I don't explain it during the tutorial, but the Frames Modify plug-in has a lot of features including allowing the user to modify a set of layers within either a set of frames or over the entire group of frames using various Gimp plug-ins. It has more features than just that, and is quite a useful part of GAP along with the Move Path plug-in.

Preliminaries

Create a nice working folder to save all of your image files that will be created during this tutorial. It's a good habit to always make a working folder for animation files created with GAP, since it can make a lot of them.

Grab this script by saulgoode:

Right-click the above and select Save Link As or Save As (depending on the choices your browser offers) and save the script into your Gimp Scripts folder.

Finding Your Gimp Scripts Folder

From a Gimp image window select:

Edit | Preferences

This opens the Preferences Dialog window.

On the left side of the window will be a list of various items that you can select.

At the bottom of that list is a heading named Folders.

Click on the little + or triangle icon beside the Folders name to expand that section.

Look below Folders and click on the Scripts listing.

Now on the right side of the window, you will see a section showing the Path or Paths to your Scripts folder(s).

Normally you want to place your scripts into the Scripts folder located inside your personal .gimp-2.6 folder if you have a choice of more than one Scripts folder.

Refresh Scripts

From a Gimp image window, select:

Filters | Script-Fu | Refresh Scripts

A Pattern Image File

Grab this image and open it in Gimp:

Image

Here is the link in case you prefer to download it in Gimp:

Image

Once you have the image opened, select:

Edit | Copy

That will place a copy of the image on your clipboard

Open your Patterns Dialog window by selecting from a Gimp image window:

Windows | Dockable Dialogs | Patterns

If you look in the upper left corner of your Patterns Dialog window, you will see an icon showing the copy of the image above that you copy/pasted in Gimp:

Image

Let's Begin

1.) Open a new 400x400 image window.

2.) Drag the red-and-white pattern from the upper left corner of your Patterns Dialog window on to your 400x400 image.

You should now have this:

Image

3.) Add an Alpha Channel to your Background Layer in that image by selecting:

Layers | Transparency | Add Alpha Channel

or simply right-click on the Background Layer in the Layers Dialog window and select:

Add Alpha Channel

This adds transparency to the layer.

4.) Save your 400x400 image as background_000001.xcf into your working folder.

5.) From the background_000001.xcf image window, select:

Video | Duplicate Frames

Image

5a.) As the above image shows, set N times to 30. From Frame and To Frame remain at 1.

5b.) Click OK.

Gimp has now created 30 additional copies of background_000001.xcf and placed them in your working folder. You will only see the background_000001.xcf frame though.

6.) Again from the background_000001.xcf window select:

Video | Frames Modify

Image

6a.) Notice the Function button in the upper left corner. Click on it and select:

Apply filter on layers

Image

6b.) Click OK.

7.) The Filter Selection Dialog will open:

Image

7a.) As shown above select:

plug-in-map-object

7b.) Then click the Apply Varying button.

8.) This opens the first instance of Map Object. Here we will provide GAP with the settings for our first frame:

Image

8a.) In the Options Tab:

Make sure you have selected Cylinder as the Map To type and Transparent Background selected as shown above.

Image

8b.) In the Cylinder Tab:

Set Radius to 0.10
Set Length to 0.65


Do not worry about setting Top and Bottom. You can leave those alone.

Image

8c.) In the Orientation Tab:

Position Values are:

X: 0.50000
Y: 0.60000
Z: 0.00000

Rotation Values are:

X: 0.0
Y: -180.00 (that's minus 180.0)
Z: 0.0

No need to worry about any other Tabs.

8d.) Click OK.

9.) A little window will open:

Image

Click Continue

10.) This will open the second instance of Map Object. Here we supply GAP with the settings of our final animation frame:

Image

10a.) In the Orientation Tab:

The only change you need to apply is to make Y 180.0.

10b.) Click OK.

11.) You will get a second little Continuation Dialog window open:

Image

Click Continue.

Now GAP goes to work calculating the rotation value for each of the in between animation frames. Depending on your processor speed, this could take a minute or so, or several minutes.

When it finishes processing, select:

12.) Video | Frames to Image

Image

12a.) As shown in the image above, in the Layer Basename section,
change (41ms) to (100ms)

12b.) Then click OK.

This will create a nice multilayered image.

13.) In the new image that is created, try playing back the animation by selecting:

Filters | Animation | Playback

13a.) You will notice a slight pause in the animation. That is because for the first (bottom) and last (top) layers the cylinder is at the same rotation position. In the Map Object window, the first layer Y value was at -180.0 and the last frame Y value was set at 180.0. Geometrically those two values are the same. (Also the range from -180.0 degrees to 180.0 degrees is 360 degrees or one full rotation)

14.) In the Layers Dialog window, delete either the bottom or the top layer of the multi-layered image to fix the slight pause in the animation.

15.) Run Filters | Animation | Playback and the object should have a nice smooth rotation now.

16.) From the Layers Dialog window, select the bottom Layer of the multi-layered image.

16a.) Either click on the New Layer icon at the bottom left of the Layers Dialog window or from the image window select:

Layer | New Layer

16b.) Accept the default settings to create a transparent layer in the New Layer dialog window and click OK.

17.) Move the New transparent layer to the bottom of the stack of layers in the Layers Dialog window.

18.) Bucket Fill that layer with color white.

19.) If you properly installed saulgoode's script mentioned at the beginning of this tutorial, select:

Filters | Animation | Combine Background

This will add a background (only white in this case) behind each of the animation layers.

20.) After running the script delete the bottom white layer.

21.) Save the multi-layered image as an animated GIF by selecting:

File | Save As

21a.) Then select a name for your file: some_name.gif and Click on the SAVE button.

21b.) Make sure when the Export Dialog window opens that you select:

Save As Animation

Otherwise Gimp will combine all of the layers into one and save it as a standard GIF image rather than an animation.

21c.) Click Export.

21d.) Another window opens, and you can accept the defaults there and just click OK (or SAVE perhaps).

Your animated GIF is now saved.

Here is a sample of applying a center picture (similar to the approach in PhotoMaster's Christmas Ornament tutorial) to a simple background, and then converting to a spinning cylinder via GAP:

Image


Thanks for checking out this tutorial.

:)


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: GAP - Spinning Striped Pole
PostPosted: Sat Jul 23, 2011 10:48 pm  (#2) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Fun tutorial, ccbarr, and excellently written. There are many ways to use a spinning pole.

Image

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


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 6:20 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Excellent and easy to do, and follow. :)
Thanks ccbarr!

Image

_________________
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: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 7:10 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Just had to do another with a transparent back ground.
The decoration was created in Flame Painter 1.2

Image

I still get a flicker though even with deleting the top or bottom layer.
Trying to figure out why. :)

_________________
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: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 7:22 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Fixed it i just had to add a white bg to each layer. :)

Image

_________________
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: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 8:12 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
This is quite a fun tutorial ccbarr. :)

Image

_________________
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: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 9:08 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
just one more :)

Image

_________________
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: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 10:27 am  (#8) 
Offline
GimpChat Member
User avatar

Joined: Apr 08, 2010
Posts: 5420
Location: Northwest Ohio
Those transparent ones are fascinating!


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 10:47 am  (#9) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
I did this one last year from that tutorial. I was going to do another one and Gap acted up in Gimp 2.7 and booted me out. I tried to install Gap on my 2.6.11 and it doesn't show up.
Image

_________________
Image


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 11:02 am  (#10) 
Offline
GimpChat Member
User avatar

Joined: Jul 08, 2011
Posts: 285
molly wrote:
I did this one last year from that tutorial. I was going to do another one and Gap acted up in Gimp 2.7 and booted me out. I tried to install Gap on my 2.6.11 and it doesn't show up.
[ Image ]

wow...this is great Molly :)

_________________
Image

My Flickr
http://anaplus.deviantart.com/


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 1:59 pm  (#11) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
thanks ana.
I am trying to do the tute again but I am having probs with some of it. We think it is mathmap that is causing the trouble so I will try it again one more time.
This is what happened in step #12......
The cylinder formed, but the layers stayed square
Image
It says in step 12b to payback but that is impossible to play 30 layers of squares. lol

_________________
Image


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 6:15 pm  (#12) 
Offline
GimpChat Member
User avatar

Joined: Jul 08, 2011
Posts: 285
and here is mine:
Image

_________________
Image

My Flickr
http://anaplus.deviantart.com/


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 6:24 pm  (#13) 
Offline
Global Moderator
User avatar

Joined: Apr 07, 2010
Posts: 14182
very good ana.....perseverence pays off huh!

_________________
Image


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 10:13 pm  (#14) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Molly you can run GAP-2.6 in portable gimp-2.6.11 if you install it into the Apps/Gimp folder where the bin folder is.
Here is my latest with Portable :)

Image

_________________
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: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 10:48 pm  (#15) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
ImageImage

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


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 10:54 pm  (#16) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Cool 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: GAP - Spinning Striped Pole
PostPosted: Sun Jul 24, 2011 11:09 pm  (#17) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Not a pole but with the same settings. :)

Image

_________________
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: GAP - Spinning Striped Pole
PostPosted: Mon Jul 25, 2011 9:25 am  (#18) 
Offline
GimpChat Member
User avatar

Joined: Apr 18, 2011
Posts: 619
Location: New York
Rod wrote:
Not a pole but with the same settings. :)

[ Image ]

I'm

getting

sleepy




:zzz

_________________
Ubuntu 22.04, Kernel i686, 5.4.0-131-generic
python3 v3.10.6 ----- GIMP - ver 2.10.30


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Mon Jul 25, 2011 9:26 am  (#19) 
Offline
GimpChat Member
User avatar

Joined: Apr 18, 2011
Posts: 619
Location: New York
kidding aside.... that is quite fascinating!

_________________
Ubuntu 22.04, Kernel i686, 5.4.0-131-generic
python3 v3.10.6 ----- GIMP - ver 2.10.30


Top
 Post subject: Re: GAP - Spinning Striped Pole
PostPosted: Mon Jul 25, 2011 9:44 am  (#20) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Very cool, Rod. Yes, Cecelia, it does have a mesmerizing quality to it ... *yawn*

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


Top
Post new topic Reply to topic  [ 43 posts ]  Go to page 1, 2, 3  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Spinning coin

5

No new posts Attachment(s) Spinning coin

68



* Login  



Powered by phpBB3 © phpBB Group