Making the animation background transparent usingGimp -but
Fasting is targeted not for beginners!
Recommendations:
To start exploring this post I recommend to study the first three teaching post in the "Knowledge Base" of the cap.
That is, we must be able to create, edit animation to understand what the "layers" and be able to work with them.
You also need to download the latest version of Gimp(There is a link in the header)
Introduction of Gimp y:
When the program opens three windows:
- toolbar;
- working window;
- auxiliary panel
Note that now the chaos going on in the working window. But do not worry - it's all the frames are displayed at once. Look at "supporting the panel," and in the "layers" left to right we see:
- - the eye that is responsible for the display of a particular frame;
- link, which is not active;
- he picture and the text (such as a "")
This text is the most salt B)
"Kadr39"- a frame name,
(200ms)- the duration of the frame,
(Replace)- an action that indicates that the frame will replace the previous one. Instead
replace may be
combine - an action that indicates that the frame is superimposed on the previous one. Modify and register from scratch can be very command, but at the end it is necessary to detect a change either "OK" or "Enter"
Context menu line also can be called by pressing the RMB (right mouse button)
To work with the right frame it must be activated by simply clicking on it.
If we make visible any one frame in the middle of the animation, you will see something suraznoe ... Do not worry is the effect of "streaming", ie pixel (dot) that is repeated in the previous frame, in a given frame is not drawn. This is done in order to save weight while optimizing the animation, you can also reduce the size or color ... And it happens "streaming video" at
(Combine)Since the frame portion is changed only superimposed.
Now look at the "working window". Note the yellow frame. Moreover, in each frame it is usually different sizes. This frame size within which to manipulate. And it is different, because after a "streaming video" is not used the entire frame, but only part of the image. To zoom it is necessary to click on the desired picture on the right mouse button and select "Layer to image size".
Yet note that in the normal figure, there are three channels of color: red, green, blue, and optimized animation instead there is a single channel "indexed" and when you add a frame to the animation it becomes gray. Indexed frames due to compression and optimization. Be careful. There is a way how to deal with indexing - to copy footage from the desired animation and paste the newly created, and then add the desired image is already there. This trick we make of indexed frames frames RGB
Open animation and immediately go to the right window "Layers, Channels, Cancel" and open the tab "Channels". We see that there are three channels: red, green, blue, and they are in visible mode.
We turn to the tab "Layers" and click on the frame of PCM. In the popup context menu select "Add Alpha Channel". It is this "Alpha" and is responsible for the transparency of our animation.
Now go to "Filter" ->"Animation" and choose "Razoptimizirovat". As you can see, each frame has acquired a normal appearance. This animation has opened in a new window so the original can be removed to the side or even better close. Now get out of visibility from all staff, in addition to which you will work (now
kadr1respectively). We activate the desired frame, activate the "Fuzzy selection" ( "BCD") and pay attention, that it has a threshold. That is, the greater the number of the threshold, the more similar colors will be selected by the selection. this mode is activated -
- replacing the current selection, i.e. each time will be allocated to the new area;
there is such a regime -
- here the selection will be supplemented to the already selected;
and there is a mode -
- on the contrary it takes separate sitting areas.
Now select a white background in the frame, and if we are satisfied with the automatic selection, then click Del on the keyboard. And if you can not adjust the allocation of cars, then we will always help eraser;)
That seems to be all :) However, I want to note that the weight of animation can both decrease and increase. And will have to deal with the new values ​​combine and replace, because there are times when to change parts of the frame covered background that you remove ...
Post has been editedFat111184 - 01.05.10, 20:43Reason for editing: editorial post