Animacija s Krito

Zahvaljujoč Kickstarterju 2015 Krita omogoča animacijo. Krita namreč podpira animacijo sličico-za-sličico.

Za dostop do funkcij animacije je najlažje spremeniti delovni prostor v Animacija. Tako se bodo prikazala zložena okna in potek dela animacije.

Potek dela

In traditional animation workflow, what you do is that you make Keyframes, which contain the important poses, and then draw frames in between (tweening in highly sophisticated animator’s jargon).

Za ta potek dela obstajajo tri pomembna zložena okna:

  1. The Zloženo okno Časovnica animacije. View and control all the frames in your animation. The timeline docker also contains functions to manage your layers. The layers that are created in the timeline docker also appear on the normal Layer docker.

  2. The Zloženo okno Folije. This docker controls the look of the onion skin, which in turn is useful for seeing the previous frame.

  3. The Zloženo okno Krivulje animacije. This docker allows you to do minor tweening for animation curves.

  4. The Zloženo okno zgodborisa. This docker helps you create and keep track of storyboards.

Furthermore, especially when you want to do a big animation, that is, any animation longer than 3 seconds, you will need to think about how you are going to approach this. Krita is specialized in frame by frame animation, and because of this Krita keeps all the frames in memory. This means that animation files will eat up all of your computer’s working memory (RAM). If you don’t know what working memory is, you probably have too little to do a long sequence in Krita. Therefore, you need to take a page from professional animation and do some planning!

../_images/Storyboard_thumbnailonly_view.png

The storyboard docker can help you plan out the shots of a scene.

Typically, most animation projects start with a script or at the very least an outline of actions that will happen. You can do this in any kind of text editor you like. The next step is to create a storyboard. They are sketches of the basic composition of each scene, with some extra notes on what is going to move, like camera movement, character movement, notes on audio, notes on color. These seem closer to a comic than an animation, but the key difference between the two is that in comics the composition is made to help the reader move their eyes over the page, while in animation the viewer’s eyes will stay in relatively the same spot, so consecutive storyboard frames will have their most important elements in relatively the same place. If that seems a little abstract, don’t worry. You can make a story board by using the animation functions, but the key here is that you use as little frames as possible. Export the story board using the render animation option.

Then, the next step is to make an Animatic. An animatic is basically the storyboard, but then animated. You are best off doing this in a video editor like Kdenlive, OpenShot, Olive, or even Windows Movie Maker. If you want to put everything together into one big animation you will need to learn how to use such a program to begin with, as Krita doesn’t have extensive video and audio montage functions.

Doing the animatic will allow you to see how the animation can be subdivided into small clips. If you are just starting out, you are best off limiting yourself to 12 frames per second. Then, a 10-second clip would be 120 frames. Try to figure out if you can subdivide your animation idea into clips of 10 seconds or shorter. You can import the story board frames associated with a specific clip by going to File ‣ Import Animation Frames. From there, slowly start building up your animation. During the sketching phase it may also help to work on a low resolution, like 800×450 pixels. High resolution only starts mattering when you are doing line art, after all. And it will be hard to get to that point if you don’t even have a rough outline.

Always keep an eye on the memory consumption. You can see the memory consumption in the status bar, by clicking the resolution label. This label should also have a little progress bar that shows how much memory Krita is using at this moment. Don’t let the memory bar get full: it will lead to Krita slowing down, and sometimes it might even mean Krita won’t be able to export the animation on your specific machine. You can reduce memory consumption by:

  1. Merging together layers. Yes, you cannot afford to have a layer for every single change. Often, the fewer layers, the better.

  2. In some cases by going to Image ‣ Crop Layers to Image Size, this will crop all layers to remove sections that are outside the canvas.

  3. Sometimes, certain layers don’t need to be full color, especially if they’re just black and white. You can then go to Layers ‣ Convert ‣ Convert Layer Color Space and convert the layer to a grayscale one. This will half the amount of RAM this specific layer will take up.

  4. Working smaller. Even if you imagined yourself animating in the 4K resolution, you might need to accept your computer just cannot handle this. Try going a step lower, on animations, even a 20% reduction can make a huge difference in memory consumption, while not being a huge difference in resolution.

Also watch out that other programs on your computer aren’t hogging all the RAM. Web browsers and chat programs tend to be the biggest culprits here, especially if you are streaming music or videos. If you are hurting for memory, see if you can get these functions to work on a separate device like a phone instead.

Another thing you will want to do is make a ton of backups. Every time you hit an important section with an animation, like you finished the line art, or you did a pretty tricky section, you will want to use File ‣ Incremental Backup to make a separate copy of the current file to continue working in. This way, if the animation file gets corrupt, which could happen due to a power outage, or a cat jumping on the keyboard, you will still have a snapshot of the last important section. Other backup techniques, like copying the files to a cloud service, or to a backup hard drive are also very recommended.

Nasvet

And while we’re at it, whenever you’ve hit a milestone, don’t forget to take a break as well! Doing big projects like animations take a lot of effort and concentration, so taking breaks is important to recharge yourself.

When you are done, you will want to use Render Animation again. Now either export a frame sequence or a small video file, and then compose all the frame sequences and video files together in the video editor. Then you can render it to WebM, and upload it to your favorite video hosting website.

This may all seem a little complicated, but if your computer doesn’t have a lot of resources, you have got to be resourceful yourself!

Uvod v animacijo: Kako narediti cikel hoje?

The best way to get to understand all these different parts is to actually use them. Walk cycles are considered the most basic form of a full animation, because of all the different parts involved with them. Therefore, going over how one makes a walk cycle should serve as a good introduction.

Nastavitve

First, we make a new file. On the first tab, we type in a nice ratio like 1280×1024, set the dpi to 72 (we’re making this for screens after all) and title the document ‚walk cycle‘.

In the second tab, we choose a nice background color, and set the background to canvas-color. This means that Krita will automatically fill in any transparent bits with the background color. You can change this in Image ‣ Image Properties. This is very useful for animation, as the layer you do animation on must be semi-transparent to get onion skinning working.

Opomba

Krita has a bunch of functionality for meta-data, starting at the Create Document screen. The title will be automatically used as a suggestion for saving and the description can be used by databases, or for you to leave comments behind. Not many people use it individually, but it can be useful for working in larger groups.

Nato pritisnite Ustvari!

Then, to get all the necessary tools for animation, select the animation workspace in Window ‣ Workspace ‣ Animation

Kar bi moralo imeti za posledico:

../_images/Introduction_to_animation_01.png

The animation workspace adds the Zloženo okno Časovnica animacije at the bottom.

Animiranje

Make sure there’s two transparent layers setup in the layer docker. You can add a new layer by pressing the + or by pressing ins. Let’s name the bottom one ‚environment‘ and the top walkcycle by double-clicking their names in the layer docker.

Layout of the layer stack.

Use the Orodje Ravna črta to draw a single horizontal line. This is the ground.

Our simple environment, consisting of a single horizon.

Then, select the walkcycle layer and draw a head and torso (you can use any brush for this).

A head and torso.

Now, selecting a new frame will not make a new frame automatically. Krita doesn’t actually see the walkcycle layer as an animated layer at all!

We can make it an animated layer by adding a frame to the timeline. A frame in the timeline to get a context menu. Select Create Duplicate Frame (duplicateframe).

Pozor

If you select Create Blank Frame, the content of the layer will be dropped and a new blank frame will appear; since you want to preserve the image, you need to use Create Duplicate Frame.

Location of the onion skin icon.

You can see it has become an animated layer because of the onion skin icon (onionon) showing up in the timeline docker.

Use the Create Duplicate Frame button to copy the first frame onto the second. Then, use the Orodje Premakni (switch to it using the T shortcut) with the Shift + shortcut to move the frame contents up.

We can see the difference by turning on the onion skinning (press the onionoff, so it becomes onionon):

Onion skin is turned on.
The current frame in black and the silhouette of the previous frame in red.

Now, you should see the previous frame as red.

Opozorilo

Krita sees white as a color, not as transparent, so make sure the animation layer you are working on is transparent in the bits where there’s no drawing. You can fix the situation by use the Barvo v alfo filter, but prevention is best.

Current frame is black and silhouette of the future frame is green.

Future frames are drawn in green, and both colors can be configured in the onion skin docker.

Now, we’re going to draw the two extremes of the walk cycle. These are the pose where both legs are as far apart as possible, and the pose where one leg is full stretched and the other pulled in, ready to take the next step.

../_images/Introduction_to_animation_09.png

The above image shows our two extremes: legs far apart, and one leg straight while the other is bent, as it’s taking a step. This also shows the power of onion skins, as we can see both extremes at once. Notice also how the legs have been made semi-transparent. This isn’t necessary with a stick figure, but useful in this case when we start copying.

Let’s copy these two. You can do this by doing mouseright on the frame, and then selecting Copy Keyframes. Then select the new position in the time line, mouseright again, and Paste Keyframes.

Zdaj pa …

  1. Kopirajte sličico 0 v sličico 2.

  2. Kopirajte sličico 1 v sličico 3.

  3. Erase the semi transparent lines to make it obvious which leg is in front of the other. In 0 and 1, we have the closer leg to the right, then bend, and in 2 and 3, we have the further leg to the right and then bend.

    ../_images/Introduction_to_animation_10.png
  4. V nastavitvah animacije nastavite hitrost sličic na 4

    ../_images/Introduction_to_animation_11.png
  5. Select all frames in the timeline docker by dragging-selecting them.

    ../_images/Introduction_to_animation_12.png
  6. Pritisnite Predvajaj v glavi.

  7. Uživajte v svoji prvi animaciji!

../_images/animation_walkcycle_2021_4_frames.gif

Expanding upon your rough walk cycle

../_images/Introduction_to_animation_13.png

You can quickly make some space by the Alt + drag shortcut on any frame. This’ll move that frame and all others after it in one go. More efficient for us, however, is to select all frames, mouseright them, and then select Hold frames ‣ Insert Hold Frame, which will insert an empty space or Hold Frame in between each Keyframe.

Make new frames in between each keyframe, and try to interpolate, or inbetween each frame you add.

Opomba

A lot has been written about how to inbetween properly, and it’s one of the areas where animators express their own style the clearest. As such, we won’t cover inbetweening itself here. We recommend you do a search for inbetweening tutorials on the internet. We also recommend animation analyses to get an idea of how intricate this subject is.

For this particular example, I prefer to start by finding the position of the heel in a frame, then draw the rest of the foot, then the knees, and then the rest of the legs.

../_images/Introduction_to_animation_14.png ../_images/Introduction_to_animation_13.png

You’ll find that the more frames you add, the more difficult it becomes to keep track of the animation. There are two things you can do here. The first is to color label frames, you can do mouseright on the keyframes, and select any of the colors on the bottom.

../_images/Introduction_to_animation_13b.png

In this example, the extremes are blue, the first inbetweens green and the less important inbetweens in yellow and orange.

Še ena stvar, ki jo lahko naredite, je, da prilagodite folije.

You can modify the onion skin by using the Zloženo okno Folije, where you can change how many frames are visible at once, by toggling them on the top row. The bottom row is for controlling transparency, while below there you can modify the colors and intensity of the coloring.

../_images/Introduction_to_animation_15.png
../_images/Introduction_to_animation_14b.png

Here we’ve turned off all onion skinned frames except the next and previous ones.

Animiranje z več plastmi

Okay, our walk cycle is missing some hands, let’s add them on a separate layer. So we make a new layer, and name it hands and…

../_images/Introduction_to_animation_16.png

Our walk cycle is gone from the timeline docker! This is a feature actually. A full animation can have so many little parts that an animator might want to remove the layers they’re not working on from the timeline docker.

Novo v verziji 4.3.0: In Krita 4.3.0 and later, all new layers are pinned to the timeline by default.

To show a layer whether it’s active or not, you can „pin“ it to the timeline by clicking the pintimeline icon while having the layer you want pinned selected in the layer docker. We recommend pinning any layers that you’re currently animating on.

../_images/Introduction_to_animation_17.png ../_images/Introduction_to_animation_18.png

Izvažanje

When you are done, select File ‣ Render Animation. To render to a video file, you’ll need a program called FFmpeg. To learn more, please read Upodobi animacijo.

Uživajte v svojem ciklu hoje!

../_images/Introduction_to_animation_walkcycle_02.gif

Animiranje z maskami preoblikovanja

Novo v verziji 5.0.

If you want to move your walk cycle, you may use Preoblikuj maske to move the frames from left to right without editing the pixels themselves.

First, open up the Zloženo okno Krivulje animacije if it has not been opened yet, under Settings ‣ Dockers ‣ Animation Curves.

Then, group the layers that you want to transform, in our example, these are the hands and the walkcycle layers. mouseright the group, Add ‣ Transform mask.

Then, go into the animation docker, select the first frame, and select Adds keyframe to control scalar property (scalaradd). In the Timeline Docker, Scalar Frames will be marked with a diamond.

Now select the Orodje Preoblikovanje, press the screen and move the group to the start point. Press Enter to confirm. Select the last frame in the docker, and then press the screen again, now move everything to the end point. Press Zoom view to fit channel range to view the whole frame.

Now, when you press play, you will see the layer contents move. However, it is probably moving too fast. There are two things to reduce that problem: The first is to copy and paste the walk cycle frames, so it repeats 3-4 times, then move the scalar frame to the last frame.

../_images/Introduction_to_animation_19.png ../_images/introduction_to_animation_walkcycle_03_simple_tween.gif

This still doesn’t sync the walk cycle directly to the speed it’s moving at. The best method, if a little laborious, is to go to the first frame where one of the feet touches the ground, and then mark that section (for example, using guides), then, in subsequent frames, use the Transform Tool on each frame to move it so that the foot stays in the same place as long as it’s touching the ground. Do the same for the next bit where a foot touches the ground, and the next, and so on.

../_images/Introduction_to_animation_20a.png

Each place where a foot touches the ground is marked using vertical guides, which allows us to adjust each frame, so the foot stays in place.

../_images/Introduction_to_animation_20b.png
../_images/Introduction_to_animation_20c.png

The animation curve docker after adjusting each frame to be in the right spot. Krita can do curve interpolation (so you can create an ease-in and ease-out type curves), but for a situation like this, per-frame adjustment is quicker.

Po tem, ko ste naredili vse to, boste končali cikel hoje z gladkim gibanjem:

../_images/introduction_to_animation_walkcycle_03_adjusted_tween.gif

Poglej Tudi

  • Zloženo okno Časovnica

  • Zloženo okno Folija

  • Zloženo okno Krivulje animacije

  • Zloženo okno Zgodboris

  • Uvozi animacijo

  • Zvok animacije

  • Upodobi animacijo

  • Predloga japonske animacije