Анимация Фигур

From Synfig Studio :: Documentation
Jump to: navigation, search
Line 28: Line 28:
 
[[Image:FlowerTutorialCanvas2.png|center|frame]]
 
[[Image:FlowerTutorialCanvas2.png|center|frame]]
  
 
<<Translation in progress>> (Перевод не закончен)
 
  
 
== Анимация стебля ==
 
== Анимация стебля ==
Line 54: Line 52:
  
 
[[Image:FlowerTutorialTimetrackParamsPanels6.png|center|frame]]
 
[[Image:FlowerTutorialTimetrackParamsPanels6.png|center|frame]]
 +
 +
<<Translation in progress>> (Перевод не закончен)
  
 
Each big green dot (or {{l|waypoints|waypoint}}) stands for a recorded value (here the vertices positions were recorded at 0f with the keyframe, and at 4s when we moved some vertices or vertices handles). The two vertices we added to make the bud are marked at {{Literal|DYN}} (dynamic). Right-click on them in the params list, and select "Mark Activepoint as Off".
 
Each big green dot (or {{l|waypoints|waypoint}}) stands for a recorded value (here the vertices positions were recorded at 0f with the keyframe, and at 4s when we moved some vertices or vertices handles). The two vertices we added to make the bud are marked at {{Literal|DYN}} (dynamic). Right-click on them in the params list, and select "Mark Activepoint as Off".

Revision as of 22:19, 23 January 2012

Languages Language: 

English • español • français • italiano • português • română • русский • 中文(中国大陆)‎

Warning!

This page contains outdated information.

The release of Synfig Studio 0.64.0 introduced new terminology and this translated page needs to be updated according to original English text.

You can help updating this page - see instructions here. Thank you!

warning end


Подготовительный этап

В этой статье вы узнаете как создать простую анимацию ростущего цветка используя BLines.

Flower 0.png

Запустите Synfig Studio — откроется новый файл. Если Synfig Studio уже был запущен, то выберите "File → New" ("Файл → New") на панели инструментов.

Первое что нужно создать это градиентная заливка для фона. Выберите цвет заливки и обриса на панели инструментов которые будет иметь наш градиент. Вы также можете напрямую редактировать градиент с помощью линии градиента.

Выберите инструмент "Градиентная заливка" на Панели Инструментов и проведите вертикальную линию курсором вдоль холста чтобы получить результат.

Далее выбирете BLine Tool (Кривые) и убедитесь что только "Create Region BLine" (Создать кривую области) отмечена на Панели Параметров Инструментов. На Панели Инструментов установите цвет заливки на зелёный. Нарисуйте фигуру вроде треугольника с помощью BLine Tool (Кривые). Чтобы замкнуть фигуру после того как вы нарисуете три вершины, кликните правой кнопкой мыши на первой и выберите "Loop BLine" (Замкнуть Контур).

Теперь контур замкнут, вы можете закончить его создание нажав на другой инструмент или на кнопку с шестерёнками расположенную внизу Панели Параметров Инструментов.

FlowerTutorialCanvas1.png

Это будет основа стебля. Вы можете немного подрегулировать вершины касательных линий (красные точки) чтобы получить закруглённые углы. Выбрав Transform Tool (Инструмент Трансформирования) кликните правой кнокой на каждой вершине и выберите "Split Tangents" (Разделить Касательные), теперь точки касательных каждой вершины могут регулироваться отдельно друг от друга. На этом подготовительный этап закончен.

FlowerTutorialCanvas2.png


Анимация стебля

Войдит в меню холста нажав на иконку caret menu в верхнем левом углу там где пересекаются линейки и выберите "Edit → Properties"(Правка>Properties). Перейдите на вкладку Time tab (Время) и установите "End time"(Время онца) на "6s" после чего смело жмите ок.

Установите значение времени на начало ("0f") после чего на панели Ключевых Кадров Keyframes Panel (Той что с ключиком на иконке) нажмите на кнопку с "+" (Добавить новый ключевой кадр). Keyframes (Ключевые кадры) позволяют нам контролировать сцену, то есть на ключевом кадре "запоминаються" все свойства каждого элемента сцены. Теперь установите значение времени на "4.5s". Нажмите на зелёный кружок в нижнем правом углу холста (или на ту иконку которая находиться на его месте, если у вас отличаеться тема оформления) чтобы переключиться в Animate Editing Mode (Режим редактирования анимации), обратите внимание что теперь кружок стал красным.

С помощью Transform Tool (Инструмент Трансформирования) выберите зелёный росток и потяните верхнюю точку чтоб получить стебель. Вы можете используя касательные вершин слегка изогнуть форму если захотите.

FlowerTutorialCanvas3.png

Оставаясь на отметке времени "4.5s" кликнете правой кнопкой мыши на край стебля, ближе к вершине, и выберите "Insert Item (smart)" (Вставить Узел (Умно)). Сделайте то же самое с другой стороны стебля. Кликните правой кнопкой мыши на каждой из этих новых точек и выберите "Split Tangents" (Разделить касательные). Теперь попробуйте сделать форму как на рисунке, чтобы получился бутон.

FlowerTutorialCanvas4.png

Теперь если вы кликните например на "2s" вы заметите что форма бутона немного проступает даже если росток ещё совсем маленький.

FlowerTutorialCanvas5.png

Нам скорее надо чтобы бутон появился на 3.5s и полностью сформировался к 4.5s.

И так устанавливаем значение времени на "3.5s". Теперь взгляните на панели "Params" (Парметры) и "Timetrack" (Дорожка времени) внизу. Вы заметите что что каждому параметру на панели "Params" (Парметры) соответствует дорожка на "Timetrack" (Дорожка времени). Самый нижний параметр это список вершин, нажмите на маленькую стрелочку слева чтобы развернуть список. Вы должны увидеть что то похожее на это:

FlowerTutorialTimetrackParamsPanels6.png

<<Translation in progress>> (Перевод не закончен)

Each big green dot (or waypoint) stands for a recorded value (here the vertices positions were recorded at 0f with the keyframe, and at 4s when we moved some vertices or vertices handles). The two vertices we added to make the bud are marked at "DYN" (dynamic). Right-click on them in the params list, and select "Mark Activepoint as Off".

The panel should now look like this, the grayed part being the part where the bud vertices have no effect on the stem.

FlowerTutorial-7-WaypointsActivepointsOff.png

For example if you click on "2s" or even "3s" now, the bud shape is not visible. It starts to appear only a little after 3.5s.

However, the shape of the stem may not look very nice during its growth between 0 and 4s. Make sure you're still in Animate Edit Mode, and tweak the shape at various moments in time, to get something you like.

The animation of the stem is now finished, but it still lacks the petals. You can watch a preview of your animation: Go to "File → Preview", validate, wait for the preview to be generated, and watch.

Note

Previews are often pixelated and blurry, but the final render will be clean-cut. Higher quality previews are obtainable by using higher values for 'Zoom' and 'Frames per second' in the preview dialog window.
note end


Adding the petals

Now leave the "Animate Editing Mode" by clicking on the red circle at the right bottom of the canvas.

Change the fill color to pink, and create a petal with the BLine Tool. You'll notice that the green duck that allows easy movement of a shape is at the center of the canvas. Select all the vertices of the petal with CtrlA and move them close to the green duck (with the Transform Tool), as shown.

FlowerTutorial-8.png

Then drag the green duck very close to the top of the bud. Hit CtrlA again to select all vertices of the petal and tweak it a bit with Rotate Tool. Also, in the Layers Panel select the petal layer and put it under the stem layer. Click on the petal to select it, then ctrl-click on the stem. Both objects should be selected.

Now click on the vertex at the top of the stem and ctrl-click on the green duck of the petal (both should appear in a lighter color, as they are selected). Then right-click on the stem top vertex, and select "Link". The petal will move a bit as the green duck is snapped on the stem vertex.

FlowerTutorial-9.png

Now that there's a link between the petal and the top of the stem, when the top of the stem moves, the petal will follow the move. (And if the green duck of the petal moves, the top of the stem will move, but we don't want to do that here.)

On the Layers Panel, select the newly created Petal layer and duplicate it (with the third button, on the bottom of the Layers Panel). On the canvas, press CtrlA to select all the vertices of the duplicated petal, and move them a little, so the petals are no longer overlaid. (Don't move the green duck, just the orange ones). Repeat the process several time, to get something looking like this image.

FlowerTutorial-10.png

Note that the duplicated petals are also linked to the stem. If you go back to the first keyframe, you'll see that the petals are visible. We don't want that. We want the petals to appear and bloom almost at the end of the growth.

Hiding the petals

Let's say we want the petals to appear a little after 4 seconds in the animation, and be full size at 5 seconds, instead of being visible and full size all the time.

Switch to "Animate Editing Mode" again by clicking on the green circle at the bottom right of the canvas. But if we will go to "4s" and modify them, then they also change at "5s". Because the shape/position of the petals is not fixated at this moment of time by any waypoints or keyframes. That means that we need a keyframe at "5s". On the timetrack, click to place the cursor at 5 seconds. On the Keyframes Panel, click on "+" to add a new keyframe.

Now click on "4s", and on the Layers Panel, select all the petals layers (with ctrl+click), then press CtrlA to select all the petals vertices. Scale them down with the Scale Tool, and move them, so they are hidden by the stem, as shown.

FlowerTutorial-11.png

From 4s to 5s, the petals will now appear and bloom. But notice that we have a keyframe at 0s which also remembers petals shape. That makes the problem — the petals are still visible from the first keyframe to the 4s keyframe. We could either make the petals tiny and hidden tweaking their size on every frame from 0s to 4s, or we could make them invisible on this interval.

Let's choose the second solution. To make things easier, we are going to encapsulate the petal layers into an Inline Canvas. With all the petal layers selected, right-click on them on the Layers Panel and select "Encapsulate". You can rename the layers to make things more understandable.

FlowerTutorial-12.png

Select the "Petals" inline canvas and jump to the first keyframe. In the Param tabs, set the "Amount" value to "0". The petals are now invisible on that keyframe. Note that two waypoints were added in front of the "Amount" parameter, one at 0s and the other at 5s. Drag the 5s waypoint to 4s, so that the opacity of the petals will be 1 at 4s.

FlowerTutorial-13.png

There is still one problem left: from 0s to 4s, the opacity of the petals slowly increases, making the petals visible when they shouldn't. To solve this, we will change the Amount interpolation method. Right click on the Amount waypoint at 0f, and select "Edit". A new dialog will appear, in which you can choose the In and Out interpolation. Set the Out Interpolation to "Constant".

FlowerTutorial-14.png

Tip

You can also change waypoint Out interpolation by right-clicking on it and selecting "Out → Constant".
note end

This means that after that waypoint, the Amount value will remain constant, until another waypoint is encountered. So from 0f to 4s the Amount value will be equal to 0, and at 4s it will suddenly changed to 1, and make the petals visible, as expected. Alternatively, we could have achieved the same effect by setting the In Interpolation of the waypoint at 4s to "Constant".

Notice how (half of) the waypoint changes from a green circle (meaning smooth animation of the amount parameter) to a red step (meaning that the amount parameter is suddenly stepped).

Now you're done. The stem grows for 4.5 seconds and then stays still the last 1.5 seconds. The petals are hidden until 4 seconds, and then grow quickly between 4 and 5 seconds, and stay still the last 1 second too.

Click on "File → Render" to render your animation. Select any format you want, and ensure that "Use current frame" option is unchecked (otherwise, one frame only will be rendered).


Languages Language: 

English • español • français • italiano • português • română • русский • 中文(中国大陆)‎