Slideshow Tutorial

From Synfig Studio :: Documentation
Jump to: navigation, search
Line 11: Line 11:
 
Synfig realizeaza animatie folosind mai multe straturi, fiecare dintre ele existand de-a lungul intregii durate a animatiei. Scopul nostru este de a face vizibile doar unele straturi la un moment dat. Exista mai multe metode de a realiza acest lucru, iar in aceasta lectie vom explica cum se poate face doar un strat vizibil folosind parametrii {{l|Blend_Method_Parameter|Blend}} si {{l|Amount_Parameter|Amount}} pentru fiecare strat.
 
Synfig realizeaza animatie folosind mai multe straturi, fiecare dintre ele existand de-a lungul intregii durate a animatiei. Scopul nostru este de a face vizibile doar unele straturi la un moment dat. Exista mai multe metode de a realiza acest lucru, iar in aceasta lectie vom explica cum se poate face doar un strat vizibil folosind parametrii {{l|Blend_Method_Parameter|Blend}} si {{l|Amount_Parameter|Amount}} pentru fiecare strat.
  
Toate straturile grafice din Synfig au aceste proprietati esentiale. Modul {{l|Blend_Method_Parameter|Blend Mode}} defineste modul in care imaginea trebuie asezata pe straturi cu toate elementele de deasupra ei, iar Amount indica unde va fi realizat Blend. In the default blend mode, {{l|Blend_Method_Parameter#Composite|Composite}}, objects are simply placed on top of everything below them. In this case, the Amount value determines the overall transparency of the layer: at a value of 1.0, the layer is fully visible; at 0.0, it is entirely transparent. In-between values constitute partial transparency, which will form the transitions. These properties can be used to display a series of pictures. Each is its own layer and at any given point in time, one layer's amount is set to 1.0 while all others equal 0. However, there is a more efficient way of accomplishing the task. This method requires switching all images to the {{l|Blend_Method_Parameter#Straight|Straight}} blend mode.
+
Toate straturile grafice din Synfig au aceste proprietati esentiale. Modul {{l|Blend_Method_Parameter|Blend Mode}} defineste modul in care imaginea trebuie asezata pe straturi cu toate elementele de deasupra ei, iar Amount indica unde va fi realizat Blend. In modul implicit blend, {{l|Blend_Method_Parameter#Composite|Composite}}, obiectele sunt asezate unele peste celelalte. In acest caz, valoarea Amount determina transparenta generala a stratului: la valoarea 1.0, stratul este complet vizibil; la 0.0, este complet transparent. Valorile intermediare dau o transparenta partiala, care vor determina tranzitiile. Aceste proprietati pot fi folosite pentru a afisa unele imagini. Fiecare apartine propriului strat si la un anumit moment din timp, valoarea unui strat este 1.0 in timp valoarea celorlalte straturi este egala cu 0. However, there is a more efficient way of accomplishing the task. This method requires switching all images to the {{l|Blend_Method_Parameter#Straight|Straight}} blend mode.
  
 
This blend mode has an advantage: all layers below the current one are hidden. Therefore it is no longer necessary for layers below the current one to have a an Amount of 0. Using the Amount for crossfade still works, but it now needs to be changed only once: all layers start with a value of 1, and then be made transparent from the highest to the lowest.
 
This blend mode has an advantage: all layers below the current one are hidden. Therefore it is no longer necessary for layers below the current one to have a an Amount of 0. Using the Amount for crossfade still works, but it now needs to be changed only once: all layers start with a value of 1, and then be made transparent from the highest to the lowest.

Revision as of 14:43, 26 April 2012

Languages Language: 

English • français • 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


In Synfig, exista mai multe metode de a crea o prezentare folosind mai multe imagini. Probabil cea mai simpla metoda este folosind Importatorul-lista - List Importer pentru a importa mai multe imagini. Oricum, metoda functioneaza doar cu imagini raster si nu poate genera tranzitii. Tehnica descrisa aici este putin mai complexa, dar permite crearea unei prezentari din mai multe straturi Synfig. Metoda poate produce doar tranzitii line; prezentarile mai complexe cer o tehnica avansata.

Descriere Tehnica

Synfig realizeaza animatie folosind mai multe straturi, fiecare dintre ele existand de-a lungul intregii durate a animatiei. Scopul nostru este de a face vizibile doar unele straturi la un moment dat. Exista mai multe metode de a realiza acest lucru, iar in aceasta lectie vom explica cum se poate face doar un strat vizibil folosind parametrii Blend si Amount pentru fiecare strat.

Toate straturile grafice din Synfig au aceste proprietati esentiale. Modul Blend Mode defineste modul in care imaginea trebuie asezata pe straturi cu toate elementele de deasupra ei, iar Amount indica unde va fi realizat Blend. In modul implicit blend, Composite, obiectele sunt asezate unele peste celelalte. In acest caz, valoarea Amount determina transparenta generala a stratului: la valoarea 1.0, stratul este complet vizibil; la 0.0, este complet transparent. Valorile intermediare dau o transparenta partiala, care vor determina tranzitiile. Aceste proprietati pot fi folosite pentru a afisa unele imagini. Fiecare apartine propriului strat si la un anumit moment din timp, valoarea unui strat este 1.0 in timp valoarea celorlalte straturi este egala cu 0. However, there is a more efficient way of accomplishing the task. This method requires switching all images to the Straight blend mode.

This blend mode has an advantage: all layers below the current one are hidden. Therefore it is no longer necessary for layers below the current one to have a an Amount of 0. Using the Amount for crossfade still works, but it now needs to be changed only once: all layers start with a value of 1, and then be made transparent from the highest to the lowest.

The effect could be animated with two waypoints per layer. However, Synfig offers an even simpler method that does not require using the animation mode. Instead, linking functionality can be used. The data type for Amount is currently set to be a real number. Instead, let's replace that with a special function by converting the layer to Timed Swap.

Image:Slideshow_amount4.png

Now we examine the parameters of this new data type. The first is the initial value (1.0), the second is the final value (0.0), and the third is the time when the values will switch. If we want the image to display for two seconds, we can set the Swap Time to "2s". (Note: this assumes we are starting at 0s). Then the amount will be 1.0 for three seconds (image visible) and 0 for the remainder of the timeline (image hidden). The last value will be the duration of the crossfade transition. Note that the transition takes away from the time for which the image will be displayed. For example, a value of "1s" means that the image will be fully opaque for one second, fade in one second, and then remain faded for the remainder of the animation.

Applying successive times to layers from the top down will fade them one by one, creating the desired slideshow effect.

Step-by-Step Instructions

Here are step-by-step instructions for applying this principle to an animation.

Setting Up

Open a Synfig document and import any images, canvases, etc. Images can be imported using >File>Import (The first ">" signifies the Caret Menu). Note that importing links to the image using a relative path. Take care to maintain the relative positions of the files when moving them. If multiple layers represent a single image, encapsulate them into an Inline Canvas. Then arrange the images in the order they will be displayed, first image on top.

Blend Method

Select all layers in the layer panel. Then go to the parameters panel and set the Blend Method to Straight. Image:Slideshow_blend1.pngImage:Slideshow_blend2.png

Timed Swap

Unlike Blend Mode, converting to Timed Swap must be done individually for each layer. Set "Before" to 1.0 and "After" to 0. Suppose you want the images to swap every 4 seconds, using 1 second transitions. Then set the "Duration" to "1s". Afterwards, set Time for the first layer to 4+1=5. Then increase the time for each successive layer (5,10,15,20,...). The Swap Time is the point where the image fully disappears. Configure these values to fit your needs.

Image:Slideshow_amount1.png Image:Slideshow_amount2.png Image:Slideshow_amount3.png Image:Slideshow_amount4.png

Animation Length

Now that times have been configured, your file must be configured to render the full animation length. Go to >Edit>Properties and switch to the "Time" tab. Set the end time to equal the last of your time values. You can add a few seconds if you want a blank/black screen at the end, after the images have faded.

Extra: Background

You may have noticed that the Straight Blend Mode removes any backgrounds from the image. Here are two methods to add a background:

a) Encapsulate all image layers. Now the Straight blend mode only works within the inline canvas. Once this is done, add any backgrounds below the canvas, and any foreground above the canvas.

b) Add a background layer/canvas to the top of the layer list. Since it is above all other layers, the Straight layering mode doesn't affect it. However, it would normally shroud all the images. To make it appear below everything else, set the Blend Mode to Behind.

Endnotes

Congratulations! You have now finished reading the slideshow tutorial. Please leave me (nikitakit) a comment about your thoughts concerning this page.

GNU/Linux users may also be interested in AkhIL's imag2sif shell script. It imports images into Synfig and creates a rotate and translate layer for each.

The explanation of the "Straight" blend mode in this tutorial lacks a screenshot. Feel free to add one.


Languages Language: 

English • français • română • русский