GT Portal . Forums . Official Tutorials . Art Galleries . FAQs . Search . New Posts . Contact Us Login  .  Register


Board index » GIMP News and Help forums » GIMP Tutorials and Tips Make Money Online . Free Image Hosting
Featured Tutorial : Learn how to create characters by Griatch
Search for :  


Post new topic Reply to topic   [ 22 posts ]  


Author Message
 Post subject:
PostPosted: Sun Aug 19, 2007 2:09 am 
Online

Joined:
Thu Feb 23, 2006 5:38 am

Topics: 88
Posts: 1259

Find User's Topics

In this first part of a two part tutorial I will show you a simple method to make the following:

Image

In the second part of the tutorial, we will learn how to use transparency and add a unique background:

Image

You will need GAP installed, but you will not be using the Move Path portion of GAP. The Move Path plugin section of GAP can be overwhelming for users new to using GAP, so we avoid it completely in our tutorial and focus on an easier approach.

From the main gimp toolbar window (the one with all the tool icons) open a 300x300 image by selecting:

File | New

Image

As shown in the above image set your Width and Height to 300 pixels, then click OK.

Next select the Text Tool from the main Gimp toolbar window:

Image

I have highlighted the Text Tool icon above in red. In the Tool Options window select your font and size. I am using URW Bookman L Not-Rotated font at a size of 60.0pt. If you do not have the Tool Options window as a tabbed window at the bottom of your main gimp toolbar window, please select:

Dialogs | Tool Options from your image window.

This will open a window for you to adjust the options for the tool you are using, which is the Text Tool in this case.

Once that is done, place your mouse cursor anywhere inside the image canvas and left-click with your mouse. This will open a window where you can type your text:

Image

As you see above, I have typed the words My Text into the text box.

Watch the length of the word that you type in since you want it to fit inside of your image window. You can adjust your Font Size and Letter Spacing if you want to use a longer word.

When finished typing your word or phrase, click on the Close button.

Your text will now be on a separate layer in your image. Most likely it will not be centered in the image, and we need it to be centered to have the animation work as shown above.

After having clicked on Close in your text box, select:

Edit | Cut

This will remove the text layer, but place it into a memory buffer. Then select:

Layer | New Layer (or add a New Layer by clicking on the appropriate button at the bottom of the Layers dialog window. If you do not have a Layers dialog window as a tabbed window at the bottom of your main gimp toolbar window, just select
Dialogs | Layers from your image window and the Layers dialog window will open.)

In the window that opens after selecting Layer | New Layer in the previous paragraph, just accept the default of creating a new transparent layer and click OK.

Then select:

Edit | Paste

Magically your text reappears and it's centered, but it is a floating selection, not attached to any Layer. Now all that you have to do is attach or anchor the newly pasted text onto the New (Transparent) Layer just created by selecting:

Layer | Anchor Layer from your image window, or click on the little Anchor icon in your Layers dialog window:

Image

We now have a centered text layer (it will be called New Layer in the Layers dialog window) and it is the same size as the image.

Then merge the New Layer with the white background layer below it by selecting:

Layer | Merge Down from your image window (or right-click on the New Layer in the Layers Dialog window and select Merge Down in the menu that opens.)

We now have our text merged onto the default white Background layer.

Next, you want to duplicate this layer 39 times (which will result in our image having 40 total layers) You can do this by repeatedly (39 times) clicking on the Duplicate icon at the bottom of your Layers dialog window:

Image

[highlight]Side Note:[/highlight] There is another indirect (but somewhat more complex) way to make multiple layers, but since this is only 39 clicks, it is easier to use this method. (There is nothing magical about the amount of layers. I chose 40, you may wish to try 20 or 50, or whatever suits you. More layers usually equals smoother animation, and less layers will produce less smooth animations generally. Remember too that more layers increases your file size, so the number of layers that you use will depend on your goals.)

After duplicating the layer 39 times, we now have a 40 layer image. All layers are exactly the same.

Now the magic begins.

From your image window select:

Filters | Filter All Layers

This opens a new window showing many filters that you can choose from. We will be using the Map Object filter:

Image

I have selected the plug-in-map-object from the list and it is highlighted in blue as shown above. Once you have selected that plugin, click on the Apply Varying button.

[highlight]Explanation[/highlight]: The reason that we select the Apply Varying button rather than Apply Constant, is because we are going to be having our layer rotate (spin) and so it will have different setting for each layer (frame) of the animation. We will only be setting the first and last frames. Then GAP will do the remainder of the work calculating all of the in between frames.

Once you click on the Apply Varying button, the Map Object plugin window opens.

We will be mapping our layers to the default Plane object, so no need to make any adjustments there. The only tabs to concern ourselves with are the Light and Orientation tabs:

Image

Selecting the Light tab first, for our Lightsource type, select No Light from the drop down menu that opens when you click on that box. We do not want shadows in this animation since it will produce an unwanted effect. Those of you who like experimenting can come back and try it with a light source to see the results.

Image

To achieve our spinning animation effect, we must rotate the Plane about the Y-axis. I'm not going to get into a discussion of Cartesian coordinates at this point, just consider the Y-axis to be the vertical axis. Those of you who wish to experiment after following this tutorial can try doing your rotations about the X or Z axes, or combinations of two or all three even.

Set the Y Rotation value to -180.0 (that is minus 180.0) This will correspond to the rotation orientation of our first frame of the animation. (You may notice that in my Preview window in the image above, the "My Text" is backwards, that is because I clicked on the Preview button after setting the Y Rotation value.) Then click OK.

Another window will open. Click Continue in that window. Again the Map Object plugin window will open:

Image

This time make the value of Y in the Rotation section of the Orientation tab 180.0 This will be the value of the final frame (layer) of our animation. We want the image to spin one full rotation around the Y-axis, which is a 360 degree turn. So we have it rotate between the two extremes possible here, which are -180.0 and 180.0 (and the difference between those two values is 360). There is no need to adjust the settings under the Light tab again. They will remain as we set them the first time. Once you have set the Y Rotation value, click OK.

Yet another window opens, and click on Continue in that window:

Image

GAP will now calculate and set all of the in between spin rotation values for all of the other layers. When the plugin is finished processing (it will take some time depending on your processor), you can then test out your animation by selecting:

Filters | Animation | Playback

Close out the playback window when you are done watching your newly created animation.

Did you notice the animation stops momentarily? That is because our first frame (layer) and last frame (layer) are the exact same orientation. Geometrically -180.0 and 180.0 are the same orientation. We can eliminate the pause by deleting either the top or the bottom layer. Make sure that it is selected in the Layers Dialog window and then click on the little Trash Can icon at the bottom of the window to delete that layer. Then if you play back your animation again there will be no pauses.

Now lets convert it into a GIF animation image file.

First select:

Filters | Animation | Optimize (for GIF) from the image window.

We do this to try to process the final animation into an optimum smallest file size.

After it processes another multilayered image window is created. From this new image window select:

File | Save As

And I saved my file as twisting_logo.gif and click on Save in the window that opens.

The Export File window then opens:

Image

Make sure that you click on the Save as Animation selection as shown above and then click on the Export button.

Another window opens, just accept the default values there and click on OK. Your animated GIF file has now been saved.

This is the end of part 1 of this tutorial. In part 2 we add transparency to the mix. This allows for more flexibility and creativity in the final animation.




Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 19, 2007 2:25 am 
Online

Joined:
Thu Feb 23, 2006 5:38 am

Topics: 88
Posts: 1259

Find User's Topics
[highlight]PART II[/highlight]

Part II will rely heavily on part I of this tutorial, will use very little guide images, and will gloss over things detailed in part 1.

Before beginning, please download and install this helpful script by saulgoode:

http://www.flashingtwelve.brickfilms.com/GIMP/Scripts/combine-bg.scm

We will use it to add a background to a spinning text logo. If you do not know how to install scripts, please see the FAQ link at the top of the page. By clicking on it, you will be taken to a page with a link to directions for installing scripts.

As in part 1 of this tutorial, open a new 300x300px image.

Using the Text Tool add a text layer to the image and center it as described in part 1. Do not merge the centered text layer with the Background Layer as was done in Part 1.

Instead, using the Layers Dialog window, select the Background layer and then click on the Trash Can Icon at the bottom of that window and delete the Background layer. The only remaining layer is the centered text layer. If you did not rename it, then it will be called New Layer.

Duplicate that layer 39 more times as described in part 1.

Then, as in part 1, select:

Filters | Filter All Layers

Choose the plug-in-map-object as in part 1 and click on the Apply Varying button.

The Map Object plugin window will open. Apply the same settings as in part 1, but with an additional setting:

Image

Check the Transparent background box in the Options tab. Once you have set the values for the Light and Orientation tabs as per part 1 of this tutorial, click OK.

A window pops up and click Continue.

Then the Map Object plugin window again opens. As in part 1, no need to set the Light tab values again. Nor is it necessary to click on the Transparent background option in the Options tab, as that will remain the same. Just set the value for the rotation about the Y-axis to 180.0 just as was done in part 1 and click OK.

Again, a window pops open and you click on the Continue button.

GAP will now process the layers to set the proper spin rotation for all of the in between frames. You set up the first and last frame with the Map Object plugin.

When GAP is finished processing, select the bottom layer in your Layers Dialog window. That would be the one named New Layer. Then add a new layer using either the icon button at the bottom of the Layers Dialog window, or by selecting:

Layer | New Layer from the image window.

Move that newly created layer to the bottom of the layer stack in the Layers Dialog window by clicking the Down arrow or by click-dragging it to the bottom of the layer stack. You can fill that layer with a color, or multiple colors, or be as creative as you want. That layer will become the background layer for your spinning logo. Just remember that GIF files are limited to 256 colors, so using too many different colors will result in some degradation of your final animation.

Once you are finished preparing that layer select:

Filters | Animation | Combine Background (this is the new menu item created by the combine-bg.scm script that you installed earlier.

[highlight]Explanation:[/highlight] What this does, is to take a copy of the background layer just made and place it behind each "text" layer and then merge each text layer with that background layer copy.

Once you have done that, delete that background layer. Then delete either the very top layer or remaining bottom layer from the Layers Dialog window. We do that because as in part 1, the first and last layers are the same, and they cause an unwanted pause in the animation. After deleting the layer, playback your animation by selecting:

Filters | Animation | Playback

When you have finished watching your animation close out the preview window and then finish up creating the GIF animation image file as in part 1 where you run Optimize (for GIF) and then Save As in the new multilayered image created by the Optimize step. Make sure that in the Export File window you have selected Save As Animation before clicking the Export button. Accept the defaults in the next window that opens and click OK. Your GIF animation has been saved.

[highlight]Final Thoughts: [/highlight] The animation can be applied to any object, not only text. Maybe a rectangular object, or an elliptical shaped object, or maybe a cutout image as examples.

I seem to remember someone else saying there was a tutorial on making a spinning logo. I do not know which tutorial it is, and I do not know if that tutorial resembles this tutorials methods. If so, I ask that you would please provide the link to that tutorial so I may review it and if appropriate credit the original tutorial author. I don't wish to get credit for something if someone else used the same method previously.

Thank you for checking out this two part tutorial. :h:



Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 22, 2007 6:55 am 
Offline
User avatar

Joined:
Wed Sep 28, 2005 4:45 pm

Topics: 14
Posts: 65

Find User's Topics
Nice, I've been wondering how to get this effect from the day curlyhairedboy made his sig. :p



Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 23, 2007 7:52 pm 
Offline
User avatar

Joined:
Mon Oct 23, 2006 12:07 am

Topics: 67
Posts: 444

Find User's Topics
Sorry if this is a dumb question, but how do I download that script?


_________________
Image
Gifts | You may know me as ToAd or toadeh (hence the T in my avatar)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 24, 2007 7:25 pm 
Offline

Joined:
Mon Apr 16, 2007 6:38 pm

Topics: 10
Posts: 32

Find User's Topics
Rightclick -> Save link as.. / Save target as..



Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 25, 2007 7:30 pm 
Offline
User avatar

Joined:
Tue Nov 13, 2007 11:13 am

Topics: 10
Posts: 122

Find User's Topics
This is not working for me. I have done it over and over and all that results is that the bottom and top layers are rotated 180ΒΊ and the rest of the frames are as they were when I started - the in-between layers are not being reoriented or processed correctly.

I'm using GIMP v2.4 Windows and the new GAP compilation for Windows. The filter is doing something because I see each layer highlight after I click the Continue button.

I closed and restarted GIMP a few times too.


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 28, 2007 6:01 am 
Online

Joined:
Thu Feb 23, 2006 5:38 am

Topics: 88
Posts: 1259

Find User's Topics
Oregonian hi,

First, thank you for trying out the tutorial. I did write the tutorial using Gimp 2.2.17 and gimp-gap-2.2.0. I am not sure if whatever changes that were made in the latest versions affect the final results or not.

When you say it is not working, are you referring to the first part of the tutorial? The second part adds a little complexity to the piece, but you are saying that not even the first part of the tutorial works for you? If not, and since you say that you have your multilayered image, I was wondering if you could save that multilayered image as an XCF image file in Gimp and place it on a server where I might download it and look at your progress to that point.

Also, are you getting two windows that pop up asking if you wish to Continue? You will receive the first pop-up window after making your first setting in the Map Object plugin window and the second pop-up prompt will occur after your second and final setting in the Map Object plugin window. Also, are you selecting Apply Varying from the Filter Selection window that opens when you run Filter | Filter All Layers? I'm not trying to question your capabilities here, just trying to go through some things that could easily be missed, and trying as best as I can to diagnose the problem to help you have success in applying the tutorial.

Thank you again for trying the tutorial. I am sorry you ran into difficulties with it. If there is something that confuses you with the tutorial, please let me know. I try to make the tutorials as clear as possible, but what is clear to me may not always be clear to others. With input from others like you, I may be able to improve the tutorial to clarify problem points. Finally, I will try to work with you as best as I can to help you to successfully complete this tutorial if you are still interested. Thank you.

:h:



Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 29, 2007 9:39 am 
Offline
User avatar

Joined:
Sat Sep 29, 2007 9:24 am

Topics: 5
Posts: 28

Find User's Topics
Quote:
This is not working for me. I have done it over and over and all that results is that the bottom and top layers are rotated 180� and the rest of the frames are as they were when I started - the in-between layers are not being reoriented or processed correctly.

I'm using GIMP v2.4 Windows and the new GAP compilation for Windows. The filter is doing something because I see each layer highlight after I click the Continue butto


if you still have gimp 2.2.17 installed
you can copy it's MapObject.exe to the gimp2.4 plug-ins folder (\Program Files\GIMP-2.x\lib\gimp\2.0\plug-ins)
it work fine



Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 2:53 am 
Offline
User avatar

Joined:
Tue Nov 13, 2007 11:13 am

Topics: 10
Posts: 122

Find User's Topics
Quote:
When you say it is not working, are you referring to the first part of the tutorial?

Yes.

Here is the xcf file I uploaded for you to look at. I did the first one with GIMP 2.4.1, and have since upgraded to GIMP 2.4.2 but got the same results.

I did not save my original attempt. I only made 10 layers this time but got the same results.

The xcf file is after I ran plug-in-map object and made the Y-axis, -180 degrees, clicked Continue, then did it again and made it 180 degrees, and clicked Continue once again.

I did not Optimize it for GIF.

SimpleSpinningLogotut.xcf


-----

<Later Note> I should also add that I'm using GAP 2.2.2 and I got it here: GAP 2.2.2 for Windows


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 10:15 am 
Online

Joined:
Thu Feb 23, 2006 5:38 am

Topics: 88
Posts: 1259

Find User's Topics
Hi again Oregonian,

I downloaded the XCF image file and it appears that the only layers that were affected were #1 and #10. Again, I have not yet upgraded to the 2.4 version of Gimp. I'm still using the 2.2.x series with GAP-2.2.0 and it works fine there. I cannot say what the problem is for certain since it does work with this older Gimp and GAP, I apologize. Until I can upgrade to Gimp 2.4 versions here on my GNU/Linux setup, I won't be able to diagnose this any further. Anyone else out there with the newer Gimp 2.4 version and GAP-2.2.2 installed who might be able to test this out and offer any further insights would be appreciated.

When I do get Gimp and GAP upgraded, I will test this out. I seem to recall an older version of GAP having a similar problem with regards to the Filter All Layers function (which this tutorial uses), but that was fixed. Could the bug have slipped into the upgraded version? Don't know at this point, sorry, and sorry I cannot be of more help beyond this until I upgrade, however, very importantly, thank you for posting about this problem. That is the only way it can ultimately get fixed after someone as yourself notices the problem and posts about it as you have done. :h:

Edit: I tried this with what was a development version of Gimp. Version 2.3.17, which was a version on the path to the 2.4 version. When I used GAP compiled from CVS combined with that development bversion applied to your XCF file, I got the following error message:

Image

My results were exactly the same as yours, only the first and last layers are transformed. So I can verify that at least a pre-2.4 development version had the same problem. So your problem is not unique.

Finally, when I used the tutorials procedure using Gimp 2.2.13 and GAP-2.2.0 it worked just as in the tutorial. So, yes, there does seem to be a definite issue for the newer Gimp and GAP versions.



Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 12:46 pm 
Offline
User avatar

Joined:
Tue Nov 13, 2007 11:13 am

Topics: 10
Posts: 122

Find User's Topics
Thanks for taking a look at it. :w:

Yes, a lot of things have changed in v2.4x and some things that worked before don't now.

All in all, GIMP 2.4 is very nice and has some great new features.


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 12:50 pm 
Offline
User avatar

Joined:
Tue Nov 13, 2007 11:13 am

Topics: 10
Posts: 122

Find User's Topics
Quote:
JamesH - if you still have gimp 2.2.17 installed

I don't have it still installed. It was recommended that the older version be uninstalled before upgrading to v2.4


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 2:24 am 
Offline
User avatar

Joined:
Sat Sep 29, 2007 9:24 am

Topics: 5
Posts: 28

Find User's Topics
2.4 MapObject will only processing first and last layer

you can download here Gimp 2.2.17 MapObject
just extract it to the \Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins folder

Image
This is done by using the Gimp 2.4.2 with 2.2.17 MapObject.exe



Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 3:15 am 
Online
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 525
Posts: 6321

Find User's Topics
I asked time ago on the gimp devel list about compatibility between GAP and plugin , hoping that could be extended to some third party plugin (i know , is not the case of "map image" was bundled...but go on reading..)

then reply gave no much hope, not only was no possible to extend it to other "extra" plugin but for some reason was going to be restricted the number of plugins that may be used with the "apply variant" option
:a:


_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 3:18 am 
Offline
User avatar

Joined:
Tue Nov 13, 2007 11:13 am

Topics: 10
Posts: 122

Find User's Topics
Oh, Aha! I misunderstood. Thank you so much. :w: I wonder why they changed the plug-in like that?

Image


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 3:39 am 
Online
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 525
Posts: 6321

Find User's Topics
Quote:
2.4 MapObject will only processing first and last layer

you can download here Gimp 2.2.17 MapObject
just extract it to the \Program Files\GIMP-2.0\lib\gimp\2.0\plug-ins folder


thank for the link

anyway if could be not more used for animation i can't see many reason to download that plugin..with some option as that used in this Tut the plugin was working fine but for other (as map to sphere ) results were really poor and sort of buggy ( most of times, instead then a sphere result was a sort of egg, and also the quality of the "egg" was no too good)
---------------------------------------------------------------------------------------------------------------------------

Mathmap, that could also output animations till 99 frames may in theory be used as replacement ..in practice there is not a similar code ready out of the box ...

may be written, that seems one of the thig that MM may do very well...but who is going to wrote it ?


_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 4:15 am 
Offline
User avatar

Joined:
Tue Nov 13, 2007 11:13 am

Topics: 10
Posts: 122

Find User's Topics
I backed up the plugin in 2.4. Is there any reason the plugins can't be renamed MapObject22.exe and MapObject24.exe and reside in the same folder or one in the gimp2.4 plugins folder the other down in Program Files? I wonder if they would show up as the renamed files?


_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 5:20 pm 
Online
User avatar

Joined:
Mon Jun 13, 2005 11:15 am

Topics: 525
Posts: 6321

Find User's Topics
not sure if that will be compatible with 2.4 or if the problem is there and not in gap

but you can just try to replace it (back up first that of gimp 2.4) and see if it work (well if not my even crash gimp, but then just replace it again)

PS or i missed till now some of the option, or that Map Object is really improved in the last release


_________________
Image

http://www.flickr.com/photos/97844002@N00/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 29, 2008 10:39 pm 
Offline
User avatar

Joined:
Wed Jun 20, 2007 9:51 pm

Topics: 22
Posts: 324

Find User's Topics
Maybe you could speed it up and add some more frames? Otherwise, Image



Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 4:34 am 
Online

Joined:
Thu Feb 23, 2006 5:38 am

Topics: 88
Posts: 1259

Find User's Topics
Pixkid thank you.

Regarding speeding up the animation or (even slowing it down), that is easily done by adjusting the timing settings for your layers or by just using more layers (to slow it down, less to speed it up). In the tutorial, I did indicate that the number of layers (frames) used is up to each individual to decide. There is a very good script by saulgoode that allows you to make some changes on the timing and disposal of each animation layer (frame). Here is a link to that script:

http://www.flashingtwelve.brickfilms.com/GIMP/Scripts/Script-fu-2/anim-settings.scm

(Note that the above linked script is for the 2.4 versions of Gimp) If you are using Gimp 2.2, then use this link:

http://www.flashingtwelve.brickfilms.com/GIMP/Scripts/anim-settings.scm

Thank you again for your comments Pixkid.

:h:



Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 31, 2008 8:39 pm 
Offline
User avatar

Joined:
Mon May 15, 2006 5:31 am

Topics: 22
Posts: 570

Find User's Topics
I have both 2.2.17 and 2.4.4 installed in different folders. When I tried this tutorial, I had the problem too, so I did it on 2.2.17 and it worked beautifully. I tried mapping a cube in the same way but it crashed.I will continue to try and figure it out.


_________________
Image

My Sigs = My Photos


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 06, 2008 11:37 pm 
Offline

Joined:
Wed Feb 06, 2008 11:32 pm

Topics: 0
Posts: 1

Find User's Topics
I am trying to make this with my own background but after I do it the words leave a trail. What
Am I doing wrong. It might be the script im not sure.



Top
 Profile  
 
Display posts from previous:  Sort by  

Post new topic Reply to topic
 [ 22 posts ] 



Who is online

Users browsing this forum: ayesha, willgoss and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Related Website
Gimp tutorials database
All rights reserved © GimpTalk 2008
forum software by
phpBB