Difference between revisions of "How do I.es"

From Synfig Studio :: Documentation
Jump to: navigation, search
(Make linked BLine vertices not affected by Rotate layer?)
m (Text replace - ']]' to '}}')
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
Esta página debería estar escrita en Español. Por favor ayúdanos a traducirla!
 
Esta página debería estar escrita en Español. Por favor ayúdanos a traducirla!
  
Hacé tus preguntas aquí, con confianza. O hazlo en  [[Wiki Wish List]].
+
Hacé tus preguntas aquí, con confianza. O hazlo en  {{l|Wiki Wish List}}.
  
 
__TOC__
 
__TOC__
Line 12: Line 12:
  
 
# Crea la región que quieres llenar con un degradé, y la capa degradé, si no lo haz hecho.
 
# Crea la región que quieres llenar con un degradé, y la capa degradé, si no lo haz hecho.
# Asegúrate que la capa degradé este arriba de la capa inicial en la [[Layers Panel|ventana de las capas]].
+
# Asegúrate que la capa degradé este arriba de la capa inicial en la {{l|Layers Panel|ventana de las capas}}.
# Selecciona ambas capas, click derecho, y elige [[Encapsulate]].
+
# Selecciona ambas capas, click derecho, y elige {{l|Encapsulate}}.
# Despliega la nueva capa [[Paste Canvas|Inline Canvas]], y selecciona tu capa degradé.
+
# Despliega la nueva capa {{l|Paste Canvas|Inline Canvas}}, y selecciona tu capa degradé.
# En la [[Params Panel|ventana de los parámetros]] selecciona el parámetro [[Blend Method]]. Luego, doble click sobre la opción Composite y se despliegará un menú. Elige [[Blend Method#Onto|Onto]].
+
# En la {{l|Params Panel|ventana de los parámetros}} selecciona el parámetro {{l|Blend Method}}. Luego, doble click sobre la opción Composite y se despliegará un menú. Elige {{l|Blend Method#Onto|Onto}}.
  
El degradé tendrá efecto en el area visible de la región debajo de él, dentro del [[Paste Canvas|Inline Canvas]] (y en cualquier otra capa en esa sección).
+
El degradé tendrá efecto en el area visible de la región debajo de él, dentro del {{l|Paste Canvas|Inline Canvas}} (y en cualquier otra capa en esa sección).
  
 
== Mostrar u ocultar una capa, o desvanecer el efecto de una gradiente? ==
 
== Mostrar u ocultar una capa, o desvanecer el efecto de una gradiente? ==
En el [[Panel Param]], localice la opcion [[Amount Parameter|Amount]] - esta controla que tanto del resultado de la mezcla de la capa está compuesto con la mezcla de las capas que estan debajo de la misma.
+
En el {{l|Panel Param}}, localice la opcion {{l|Amount Parameter|Amount}} - esta controla que tanto del resultado de la mezcla de la capa está compuesto con la mezcla de las capas que estan debajo de la misma.
  
En otras palabras, para una capa cualquiera, esta se 'desvanecerá'. Para una[[Blur Layer]] cambiar a "[[Blend Method#Straight|Straight]]", esta se desvanecerá ''entre'' la versión desenfocada y la version sin desenfoque del lienzo. Si desea reducir el desenfoque, ajuste el [[Blur Layer#Size|Blur Layer's 'size' parameter]].
+
En otras palabras, para una capa cualquiera, esta se 'desvanecerá'. Para una{{l|Blur Layer}} cambiar a "{{l|Blend Method#Straight|Straight}}", esta se desvanecerá ''entre'' la versión desenfocada y la version sin desenfoque del lienzo. Si desea reducir el desenfoque, ajuste el {{l|Blur Layer#Size|Blur Layer's 'size' parameter}}.
  
== Fill an outline? ==
+
== Rellenar un contorno? ==
(Requested by [[User:Karlb|Karlb]])
+
(Respondido por {{l|User:Karlb|Karlb}})
 +
(Traducido por {{l|User:Wadago|Wadago}})
  
There are several options:
+
Hay varias opciones para lograrlo:  
* The easiest way is to link a new region layer to the outline's shape.
+
* El método más fácil es enlazar una nueva capa de región con la forma del contorno.  
*# Select the outline you want to fill.
+
*# Seleccione el contorno que usted quiere rellenar.  
*# In the Params Panel, right-click the Vertices parameter, select "Export", enter a name for the shape, and hit return. This will export the shape of the outline, making it visible in the Children dialog.
+
*# En el panel params, clic derecho en Vertices parameter, seleccionar "Export", escribe un nombre para la forma, y presiona enter. Esto exportará la forma del contorno, haciéndolo visible en el cuadro de diálogo Children.  
*# In the Children dialog, open the ValueBase Nodes tree and select the name you just saved the shape as.
+
*# En el cuadro de diálogo Children, abra el árbol de Nodos ValueBase y seleccione el nombre con el cual usted guardó la forma.  
*# From the [[Layer Menu]] (either context-click on the [[Layers Panel]] or use the [[Canvas Menu Caret]]) create a new [[Region Layer]] by selecting "New Layer -> Geometry -> Region". Ensure that the created layer is selected.
+
*# Desde el Menú Capa ({{l|Layer Menu}})(en el menu contextual en el Panel Capas ({{l|Layers Panel}})o desde el Menu de intercalación del lienzo ({{l|Canvas Menu Caret}}) o crean una nueva Capa de Región ({{l|Region Layer}}) seleccionando "New Layer-> Geometry-> Region". Asegurece de que la capa creada quede seleccionada.  
*# In the parameter dialog, right-click the Vertices parameter and click "Connect".
+
*# En el cuadro de diálogo parámetro (parameter), clic derecho en el parámetro de Vértices ({{l|Vertices parameter}}) y haga clic en "Connect".  
*# Now, if you don't need exported shape, you can unexport it: right click name of the shape in the Children dialog and click "Unexport".
+
*# Ahora, si usted no necesita la forma exportada, usted puede no exportarlo: clic derecho en el nombre de la forma en el cuadro de diálogo Children y luego clic en "Unexport".  
* Similar to the above, but using a different method:
+
* Similar al anterior, pero utilizando un método diferente:  
*# Create a new region layer as above, and leave it selected.
+
*# Cree una nueva capa de región encima, y déjelo seleccionado.  
*# Don't make any changes to the outline layer, which you want to fill! (see the Tier 5 on the [[Linking]] page for details).
+
*# ¡No haga ningún cambio en la capa de contorno, que usted quiere rellenar! (vea el step 5 en la página {{l|linkig}} para más detalles).
*# Select both layers in the [[Layers Panel]] This will display only the parameters shared by both layers in the [[Params Panel]].
+
*# Seleccione ambas capas en el Panel de Capas ({{l|Layer Panel}}), este mostrará sólo los parámetros compartidos por ambas capas en el Panel de parámetros ({{l|Params Panel}}).
*# Context-click on the [[Vertices Parameter]], and select [[Linking|Link]].
+
*# Clic derecho en el Parámetro de Vértices ({{l|Vertices Parameter}}) para ver el menú contextual, y seleccione {{l|Linking|Link}}.
*# The [[Region Layer]] will snap to the shape of the [[Outline Layer]].
+
*# La Capa de Región ({{l|Region Layer}}) adoptará la forma de la Capa de Contorno ({{l|Outline Layer}}).
* When you create an [[Outline Layer|outline]] with the [[Bline Tool]] that you intend to be a filled area as well, make sure you select the Fill checkbox in the [[Bline Tool#Options|tool options dialog]]. Obviously, this doesn't help much if you realise later that you needed a fill here.
+
* Cuando usted crea una capa de contorno ({{l|Outline Layer|outline}}) con la herramienta {{l|Bline Tool}} teniendo la intención de que sea un área de relleno, asegúrese de seleccionar la casilla Fill del checkbox en el cuadro de diálogo opciones de herramienta ({{l|tool options}}). Obviamente, esto no ayuda mucho si lo que usted realiza más tarde no necesitara ser rellenado.  
* If you are using the [[draw tool]], there is a button at the bottom of the [[draw tool#Options|tool options dialog]] labeled "Fill Last Stroke", which creates a new [[Region Layer]] and links its shape to the previously drawn outline. Unfortunately, it doesn't work as of Synfig Studio v0.61.04. It has been fixed in the current SVN version of the code.
+
* Si usted usa la herramienta de dibujo ({{l|Draw tool}}), hay un botón debajo del cuadro de diálogo de opciones de herramienta llamado "Fill Last Stroke", que crea una nueva Capa de Región y enlaza su forma con el contorno antes dibujado. Lamentablemente, esto no se puede lograr en la versión v0.61.04 de Synfig Studio. Esto está fijado en la versión actual del código SVN.
* Create a [[Region Layer|region]] with the same number of ducks, and manually link each duck. If you want a region that depends on multiple outline layers, this is really your only choice for now.
+
* Cree una región con el mismo número de ducks, y manualmente conecte a cada duck. Si quiere una región que dependa de  múltiples capas de contorno, ésta es realmente su única opción por el momento.  
* Use the draw tool, select only the outline to fill, draw a stroke roughly following the outline and make sure you're holding the Control key when you left go of the mouse button at the end of the stroke. This doesn't work 100% right at the moment.
+
* Use la herramienta de dibujo ({{l|Draw tool}}), seleccione sólo el contorno a rellenar, dibuje una forma aproximadamente después de contorno y asegurarse de mantener presionada la tecla Control cuando va moviendo el puntero del ratón hasta finalizar la forma ({{l|stroke}}). Esto no trabaja al 100 % en este momento.
  
== Dock windows together? ==
+
== Ventanas Dock juntas? ==
 +
(Traducido por {{l|User:Wadago|Wadago}})
  
*To dock (join) separate windows into one you must drag the tab ''icons'' for each of the tools into another window.  
+
* Para unir las ventanas separadas en una sola, debe arrastrar los iconos de paleta para cada uno de las herramientas en otra ventana distinta.  
*You can create subdivisions inside the windows by dragging the icons into the side tabs (located around the edges, the look like rectangles).  
+
* Puede crear subdivisiones dentro de la ventana arrastrando los iconos en las etiquetas de lado (localizado alrededor de los bordes, son como unos rectángulos).
*Tool tabs inside the window can be arranged by dragging them on top of one another, therefore changing the order.
+
* La herramienta de etiquetas ({{l|Tool Tabs}}) dentro de una ventana pueden ser acomodadas arrastrándolas una encima de la otra cambiando el orden.  
*''How Do I min/maximize all Synfig windows on a Windows pc''? There must be an easy way/tool to do this?
+
* ¿Cómo hago min/maximizar todas las ventanas de Synfig en Windows? ¿Hay alguna manera o herramienta para hacer esto de manera sencilla?
  
== Use an external bitmap? ==
+
== Usar un bitmap externo? ==
 +
(Traducido por {{l|User:Wadago|Wadago}})
  
* In the image menu (>) choose file-->import. PNG with alpha channel works fine.
+
* En el menú imagen eligen file -> import. Los archivos PNG con canal alfa trabajan muy bien.
* To animate it without accidental stretching, right-click on the layer and choose encapsulate. You can then animate the position of the new "Inline Canvas" layer instead of the bbox.
+
* Para animarlo sin modificarlo por un estiramiento accidental, clic derecho en la capa y elegir encapsulate. Ahora puede animar la posición de la nueva capa Inline del lienzo en vez del bbox.
  
== Use an external Vector? ==
+
== Usar un Vector externo? ==
 +
(Traducido por {{l|User:Wadago|Wadago}})
  
Synfig doesn't yet support vector import because no-one has written an import process yet. You can use the Svg2synfig [[Converters|converter]], or import it as a bitmap and trace over it in synfig. If you want to implement vector import we would gladly accept your patch.
+
Synfig no soporta aún la importación de vector porque nadie ha escrito aún un proceso de importación. Puede usar el {{l|convertidor|converter}} Svg2synfig, o importarlo como un bitmap y remontarlo sobre él en Synfig.  
 +
Si usted quiere poner en práctica la importación de vector, su parche sería bienvenido.
  
== Close a bline? ==
+
== Cerrar un bline? ==
 +
(Traducido por {{l|User:Wadago|Wadago}})
  
* Right click on the starting point and then click on loop bline.
+
* Clic derecho en el punto de inicio y luego haga clic en loop bline.  
  
Note: It doesn't work unless the initial point has a tangent - ie the first segment is curved. But you can hide tangent ducks (Alt+3, or "Caret Menu > View > Show/Hide Ducks > Show tangent ducks") and process as described. Don't forget to press (Alt+3) after that to show tangent ducks again.
+
Nota: Esto no funciona a menos que el punto inicial tenga una tangente - es decir el primer segmento esté encorvado. Pero puede esconder los ducks tangentes (Alt+3, o "Caret Menu > View > Show/Hide Ducks > Show tangent ducks") y proceder esta descrito. No olvide de presionar (Alt+3) después de esto para mostrar los ducks tangentes otra vez.
  
== How do I transform encapsulated objects? ==
+
== Cómo editar objetos encapsulados? ==
 +
(Traducido por {{l|User:Wadago|Wadago}})
  
* Right click on the Encapsulated object in the Layer dialog and choose "select all child layers". Then you select the ducks you want to transform (usually just all of them, like for rotating the object), and the rotate or scale tool and do the work.
+
* Clic derecho en el objeto Encapsulado, en el cuadro de diálogo de Capa ({{l|Layer}}) y seleccione "select all child layers". Entonces selecciona los ducks que usted quiere transformar (por lo general todos ellos, como para hacer girar el objeto), y para llevar a cabo la modificación utilice las herramientas girar ({{l|rotate}}) o escalar ({{l|scale}}).
  
== Make objects go behind each other, without moving layers? ==
+
== Crear objetos detrás de otro sin mover capas? ==
  
You'll notice each layer you make has a number in the z depth column in the Layers Panel. Say you have 3 layers, they will be numbered 2 (lowest, e.g. a square) 1 (eg a circle) 0 (highest, the default, e.g. a line). In order to make layer 1, the circle, pass behind layer 2, the square, change its z depth to be 3 or more. The z depth of the circle needs to be greater than 2 in order to be behind the square. To make the square on top of everything, you'd change its z depth to -1 or less.  
+
Usted notará que cada capa que usted va creando tiene un número en la columna de profundidad Z en el Panel de Capas ({{l|Layers Panel}}). Digamos que usted tiene 3 capas, estos serán numerados; 2 (el más bajo, p.ej un cuadrado) 1 (un círculo, por ejemplo) y 0 (el más alto, por default, por ej. una línea). Con el fin de editar la capa 1, el círculo, pase detrás de la capa 2, el cuadrado, cambie su profundidad Z a 3 o más. La profundidad Z del círculo tiene que ser mayor que 2 a fin de que esté detrás del cuadrado. Para poner al cuadrado encima de todos, usted cambiaría el valor de su profundidad Z a 1 o menos.
  
Positive numbers on the z axis go into the screen, and negative numbers go out of the screen, towards the viewer.
+
Los números positivos en el eje Z se acercan a la pantalla, y los números negativos se alejan de ella y por lo tanto del espectador.  
  
It is possible to animate this effect, but each layer is discrete. They seem to go from 0 to 0.9999.
+
Es posible animar usando este efecto, pero cada capa deberá ser distinta. Ellos figurar con un valor de 0 a 0.9999.  
  
In addition, objects in encapsulated layers can only go behind other objects in the same encapsulated layer. However an encapsulated layer can go behind another encapsulated layer.
+
Además, los objetos en capas encapsuladas sólo pueden colocarce detrás de otros objetos que esten en la misma capa encapsulada. Sin embargo, una capa encapsulada puede ir detrás de otra capa encapsulada.
  
 
== Copy a complex convert combination between parameters of different layers? ==
 
== Copy a complex convert combination between parameters of different layers? ==
  
For example: you want to copy a complicated [[Convert|conversion]] type that you have in one parameter from a layer, to other parameter (maybe not a root parameter, but a sub-parameter) of other layer. If you [[Export|export]] the complicated conversion type from the original layer and then go to the other layer and select [[Connect]] (right click and the exported and the parameter both selected) then you have the parameter form the second layer to be exactly the same than the original one. But there is a drawback: if you modify one of the sub-parameters in the complicated conversion type (e.g. you change the value of one of them) then automatically the same sub-parameter of the other layer is changed.
+
For example: you want to copy a complicated {{l|Convert|conversion}} type that you have in one parameter from a layer, to other parameter (maybe not a root parameter, but a sub-parameter) of other layer. If you {{l|Export|export}} the complicated conversion type from the original layer and then go to the other layer and select {{l|Connect}} (right click and the exported and the parameter both selected) then you have the parameter form the second layer to be exactly the same than the original one. But there is a drawback: if you modify one of the sub-parameters in the complicated conversion type (e.g. you change the value of one of them) then automatically the same sub-parameter of the other layer is changed.
  
 
How can you copy the conversion but allow modify the sub-parameters independently on each layer?  
 
How can you copy the conversion but allow modify the sub-parameters independently on each layer?  
  
Once you have achieved the complex conversion type in the original layer, <u>don't export the root parameter!</u> If you have done yet [[Export|unexport]] it. (Why?. You will understand it later.) Now duplicate the original layer. Then you should obtain the same layer with the same conversion type placed at the same parameter (but not exported). NOW export the parameter from the duplicated layer. Then go to the (sub) parameter of the layer where you want to copy the complex conversion type and Connect it to the just exported parameter form the duplicated layer. Now delete the duplicated layer (!). Then the exported [[ValueNode]] still undeleted and the layer where you wanted to copy the complex convert type have a (sub) parameter connected to it. You can [[Export|unexport]] the ValueNode or not. It is up to you. But notice that the conversion type is already copied into other (sub) parameter of other layer and they are independent as well as you can change one of them (by modifying the sub-parameters) and the other remains untouched.
+
Once you have achieved the complex conversion type in the original layer, <u>don't export the root parameter!</u> If you have done yet {{l|Export|unexport}} it. (Why?. You will understand it later.) Now duplicate the original layer. Then you should obtain the same layer with the same conversion type placed at the same parameter (but not exported). NOW export the parameter from the duplicated layer. Then go to the (sub) parameter of the layer where you want to copy the complex conversion type and Connect it to the just exported parameter form the duplicated layer. Now delete the duplicated layer (!). Then the exported {{l|ValueNode}} still undeleted and the layer where you wanted to copy the complex convert type have a (sub) parameter connected to it. You can {{l|Export|unexport}} the ValueNode or not. It is up to you. But notice that the conversion type is already copied into other (sub) parameter of other layer and they are independent as well as you can change one of them (by modifying the sub-parameters) and the other remains untouched.
  
 
== Make an existing animation run at half speed? ==
 
== Make an existing animation run at half speed? ==
Line 98: Line 105:
 
** Or, putting waypoints on the 'time offset' param would work too: 0 at 0s and -10 at 20s.  (The choice between using a linear convert and valuenodes is entirely up to you.  They both achieve the same result in this simple case).
 
** Or, putting waypoints on the 'time offset' param would work too: 0 at 0s and -10 at 20s.  (The choice between using a linear convert and valuenodes is entirely up to you.  They both achieve the same result in this simple case).
  
* Or: use a [[Time Loop Layer]].  The first method seems better and more intuitive in this case, but there are ways of getting the same effect from the Time Loop layer.  Perhaps the Time Loop layer is better if the animation doesn't run from 0s, but from some other time.  Anyway: put a Time Loop layer over the layers you wish to slow down, and:
+
* Or: use a {{l|Time Loop Layer}}.  The first method seems better and more intuitive in this case, but there are ways of getting the same effect from the Time Loop layer.  Perhaps the Time Loop layer is better if the animation doesn't run from 0s, but from some other time.  Anyway: put a Time Loop layer over the layers you wish to slow down, and:
 
** Either: set duration to 0, local time to 0, convert->linear the link time and set rate to 0.5 - this slows the animation down *to* 50% of its original speed;  use bigger rates to slow it down less
 
** Either: set duration to 0, local time to 0, convert->linear the link time and set rate to 0.5 - this slows the animation down *to* 50% of its original speed;  use bigger rates to slow it down less
 
** Or: set duration to 1h (*), link time to 0, convert->linear the local time and set rate to 0.5 - this slows the animation down *by* 50%; use bigger rates to slow it down more
 
** Or: set duration to 1h (*), link time to 0, convert->linear the local time and set rate to 0.5 - this slows the animation down *by* 50%; use bigger rates to slow it down more
Line 108: Line 115:
  
 
* draw a rectangle
 
* draw a rectangle
* go to the [[Params Panel]]
+
* go to the {{l|Params Panel}}
* right-click the 'point 1' parameter and [[Export]]
+
* right-click the 'point 1' parameter and {{l|Export}}
 
* give it a name, "p1" say
 
* give it a name, "p1" say
* right-click the 'point 2' parameter and [[Convert]] to [[Convert#Add|Add]]
+
* right-click the 'point 2' parameter and {{l|Convert}} to {{l|Convert#Add|Add}}
 
* (that's saying that rather than specifying the absolute position of the other point, you want synfig to calculate it for you)
 
* (that's saying that rather than specifying the absolute position of the other point, you want synfig to calculate it for you)
 
* (it will make 2 new sub-parameters for 'point 2', and the value used for point 2 will be their sum so we want to tell it to use 'point 1' and your (width,height))
 
* (it will make 2 new sub-parameters for 'point 2', and the value used for point 2 will be their sum so we want to tell it to use 'point 1' and your (width,height))
 
* open up the sub-parameters of 'point 2' by clicking the triangle to its left
 
* open up the sub-parameters of 'point 2' by clicking the triangle to its left
* go to the [[Children Panel]], open up the values and select the one you exported earlier (p1)
+
* go to the {{l|Children Panel}}, open up the values and select the one you exported earlier (p1)
* right-click the "LHS" parameter in the parameters dialog and [[Connect]] it
+
* right-click the "LHS" parameter in the parameters dialog and {{l|Connect}} it
 
* then enter the width and height you want in the 'RHS' parameter
 
* then enter the width and height you want in the 'RHS' parameter
  
 
== Make linked BLine vertices not affected by Rotate layer? ==
 
== Make linked BLine vertices not affected by Rotate layer? ==
 
Mira http://dooglus.rincevent.net/synfig/logs/2008/%23synfig-2008-02-07.log  
 
Mira http://dooglus.rincevent.net/synfig/logs/2008/%23synfig-2008-02-07.log  
Veatambién: [[Convert]].
+
Vea también: {{l|Convert}}.
  
 
== Create dashed outlines? ==
 
== Create dashed outlines? ==
Line 127: Line 134:
 
If you want to make simple dashed outlines the faster way is proceed like this:
 
If you want to make simple dashed outlines the faster way is proceed like this:
  
* Create a Curve Gradient and an Outline over the same [[Bline]] using the [[Bline Tool]] options. Check both Outline and Gradient at the [[Tool Options Panel]].
+
* Create a Curve Gradient and an Outline over the same {{l|BLine}} using the {{l|Bline Tool}} options. Check both Outline and Gradient at the {{l|Tool Options Panel}}.
* Raise up the gradient layer (it is created below the [[Outline Layer]]).
+
* Raise up the gradient layer (it is created below the {{l|Outline Layer}}).
* Modify the gradient [[Blend Method]] parameter to be Straight Onto. That would render the gradient onto the outline width. Also it wouldn't render the outline, so transparent portions of the gradient are transparent.
+
* Modify the gradient {{l|Blend Method}} parameter to be Straight Onto. That would render the gradient onto the outline width. Also it wouldn't render the outline, so transparent portions of the gradient are transparent.
 
* Check the 'Perpendicular' parameter of the Curve Gradient Layer.
 
* Check the 'Perpendicular' parameter of the Curve Gradient Layer.
* [[Convert]] the Gradient Parameter of the Curve Gradient Layer to be one of those types: Stripes or Repeat Gradient.
+
* {{l|Convert}} the Gradient Parameter of the Curve Gradient Layer to be one of those types: Stripes or Repeat Gradient.
 
* Modify the properties of the sub parameters to achieve the desired effect.
 
* Modify the properties of the sub parameters to achieve the desired effect.
  
Line 156: Line 163:
 
  ffmpeg2theora render/frame.%04d.png --inputfps <frame rate> -o my_animation.ogg
 
  ffmpeg2theora render/frame.%04d.png --inputfps <frame rate> -o my_animation.ogg
 
png takes less disk space then yuv.
 
png takes less disk space then yuv.
--[[User:AkhIL|AkhIL]] 21:38, 9 April 2008 (EDT)
+
--{{l|User:AkhIL|AkhIL}} 21:38, 9 April 2008 (EDT)
  
 
==Increase performance by optimizing during compilation time? ==
 
==Increase performance by optimizing during compilation time? ==
  
I would like to know what parameters do I need to apply to configure to improve performance. [[User:Genete|Genete]] 11:04, 9 April 2008 (EDT)
+
I would like to know what parameters do I need to apply to configure to improve performance. {{l|User:Genete|Genete}} 11:04, 9 April 2008 (EDT)
  
 
To optimize program you should set two environment variables
 
To optimize program you should set two environment variables
Line 185: Line 192:
 
  export CFLAGS="-O3 -pipe -mtune=athlon-xp -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -ffast-math -funsigned-char -fno-strict-aliasing"
 
  export CFLAGS="-O3 -pipe -mtune=athlon-xp -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -ffast-math -funsigned-char -fno-strict-aliasing"
 
  export CXXFLAGS=$CFLAGS
 
  export CXXFLAGS=$CFLAGS
--[[User:AkhIL|AkhIL]] 12:05, 9 April 2008 (EDT)
+
--{{l|User:AkhIL|AkhIL}} 12:05, 9 April 2008 (EDT)

Latest revision as of 08:51, 8 September 2009

Languages Language: 

English


Esta página debería estar escrita en Español. Por favor ayúdanos a traducirla!

Hacé tus preguntas aquí, con confianza. O hazlo en Wiki Wish List.

Insertar algún texto?

Con el desarrollo de la reciente versión, existe una herramienta de texto. Si usas la versión 0.61.08 o anterior, haz clic derecho en el lienzo y escoge Capa > Nueva capa > Otro > Texto.

Aplicar un degradado a un objeto en lugar de todo el lienzo?

  1. Crea la región que quieres llenar con un degradé, y la capa degradé, si no lo haz hecho.
  2. Asegúrate que la capa degradé este arriba de la capa inicial en la ventana de las capas.
  3. Selecciona ambas capas, click derecho, y elige Encapsulate.
  4. Despliega la nueva capa Inline Canvas, y selecciona tu capa degradé.
  5. En la ventana de los parámetros selecciona el parámetro Blend Method. Luego, doble click sobre la opción Composite y se despliegará un menú. Elige Onto.

El degradé tendrá efecto en el area visible de la región debajo de él, dentro del Inline Canvas (y en cualquier otra capa en esa sección).

Mostrar u ocultar una capa, o desvanecer el efecto de una gradiente?

En el Panel Param, localice la opcion Amount - esta controla que tanto del resultado de la mezcla de la capa está compuesto con la mezcla de las capas que estan debajo de la misma.

En otras palabras, para una capa cualquiera, esta se 'desvanecerá'. Para unaBlur Layer cambiar a "Straight", esta se desvanecerá entre la versión desenfocada y la version sin desenfoque del lienzo. Si desea reducir el desenfoque, ajuste el Blur Layer's 'size' parameter.

Rellenar un contorno?

(Respondido por Karlb) (Traducido por Wadago)

Hay varias opciones para lograrlo:

  • El método más fácil es enlazar una nueva capa de región con la forma del contorno.
    1. Seleccione el contorno que usted quiere rellenar.
    2. En el panel params, clic derecho en Vertices parameter, seleccionar "Export", escribe un nombre para la forma, y presiona enter. Esto exportará la forma del contorno, haciéndolo visible en el cuadro de diálogo Children.
    3. En el cuadro de diálogo Children, abra el árbol de Nodos ValueBase y seleccione el nombre con el cual usted guardó la forma.
    4. Desde el Menú Capa (Layer Menu)(en el menu contextual en el Panel Capas (Layers Panel)o desde el Menu de intercalación del lienzo (Canvas Menu Caret) o crean una nueva Capa de Región (Region Layer) seleccionando "New Layer-> Geometry-> Region". Asegurece de que la capa creada quede seleccionada.
    5. En el cuadro de diálogo parámetro (parameter), clic derecho en el parámetro de Vértices (Vertices parameter) y haga clic en "Connect".
    6. Ahora, si usted no necesita la forma exportada, usted puede no exportarlo: clic derecho en el nombre de la forma en el cuadro de diálogo Children y luego clic en "Unexport".
  • Similar al anterior, pero utilizando un método diferente:
    1. Cree una nueva capa de región encima, y déjelo seleccionado.
    2. ¡No haga ningún cambio en la capa de contorno, que usted quiere rellenar! (vea el step 5 en la página Linkig para más detalles).
    3. Seleccione ambas capas en el Panel de Capas (Layer Panel), este mostrará sólo los parámetros compartidos por ambas capas en el Panel de parámetros (Params Panel).
    4. Clic derecho en el Parámetro de Vértices (Vertices Parameter) para ver el menú contextual, y seleccione Link.
    5. La Capa de Región (Region Layer) adoptará la forma de la Capa de Contorno (Outline Layer).
  • Cuando usted crea una capa de contorno (outline) con la herramienta Bline Tool teniendo la intención de que sea un área de relleno, asegúrese de seleccionar la casilla Fill del checkbox en el cuadro de diálogo opciones de herramienta (Tool options). Obviamente, esto no ayuda mucho si lo que usted realiza más tarde no necesitara ser rellenado.
  • Si usted usa la herramienta de dibujo (Draw tool), hay un botón debajo del cuadro de diálogo de opciones de herramienta llamado "Fill Last Stroke", que crea una nueva Capa de Región y enlaza su forma con el contorno antes dibujado. Lamentablemente, esto no se puede lograr en la versión v0.61.04 de Synfig Studio. Esto está fijado en la versión actual del código SVN.
  • Cree una región con el mismo número de ducks, y manualmente conecte a cada duck. Si quiere una región que dependa de múltiples capas de contorno, ésta es realmente su única opción por el momento.
  • Use la herramienta de dibujo (Draw tool), seleccione sólo el contorno a rellenar, dibuje una forma aproximadamente después de contorno y asegurarse de mantener presionada la tecla Control cuando va moviendo el puntero del ratón hasta finalizar la forma (Stroke). Esto no trabaja al 100 % en este momento.

Ventanas Dock juntas?

(Traducido por Wadago)

  • Para unir las ventanas separadas en una sola, debe arrastrar los iconos de paleta para cada uno de las herramientas en otra ventana distinta.
  • Puede crear subdivisiones dentro de la ventana arrastrando los iconos en las etiquetas de lado (localizado alrededor de los bordes, son como unos rectángulos).
  • La herramienta de etiquetas (Tool Tabs) dentro de una ventana pueden ser acomodadas arrastrándolas una encima de la otra cambiando el orden.
  • ¿Cómo hago min/maximizar todas las ventanas de Synfig en Windows? ¿Hay alguna manera o herramienta para hacer esto de manera sencilla?

Usar un bitmap externo?

(Traducido por Wadago)

  • En el menú imagen eligen file -> import. Los archivos PNG con canal alfa trabajan muy bien.
  • Para animarlo sin modificarlo por un estiramiento accidental, clic derecho en la capa y elegir encapsulate. Ahora puede animar la posición de la nueva capa Inline del lienzo en vez del bbox.

Usar un Vector externo?

(Traducido por Wadago)

Synfig no soporta aún la importación de vector porque nadie ha escrito aún un proceso de importación. Puede usar el converter Svg2synfig, o importarlo como un bitmap y remontarlo sobre él en Synfig. Si usted quiere poner en práctica la importación de vector, su parche sería bienvenido.

Cerrar un bline?

(Traducido por Wadago)

  • Clic derecho en el punto de inicio y luego haga clic en loop bline.

Nota: Esto no funciona a menos que el punto inicial tenga una tangente - es decir el primer segmento esté encorvado. Pero puede esconder los ducks tangentes (Alt+3, o "Caret Menu > View > Show/Hide Ducks > Show tangent ducks") y proceder esta descrito. No olvide de presionar (Alt+3) después de esto para mostrar los ducks tangentes otra vez.

Cómo editar objetos encapsulados?

(Traducido por Wadago)

  • Clic derecho en el objeto Encapsulado, en el cuadro de diálogo de Capa (Layer) y seleccione "select all child layers". Entonces selecciona los ducks que usted quiere transformar (por lo general todos ellos, como para hacer girar el objeto), y para llevar a cabo la modificación utilice las herramientas girar (Rotate) o escalar (Scale).

Crear objetos detrás de otro sin mover capas?

Usted notará que cada capa que usted va creando tiene un número en la columna de profundidad Z en el Panel de Capas (Layers Panel). Digamos que usted tiene 3 capas, estos serán numerados; 2 (el más bajo, p.ej un cuadrado) 1 (un círculo, por ejemplo) y 0 (el más alto, por default, por ej. una línea). Con el fin de editar la capa 1, el círculo, pase detrás de la capa 2, el cuadrado, cambie su profundidad Z a 3 o más. La profundidad Z del círculo tiene que ser mayor que 2 a fin de que esté detrás del cuadrado. Para poner al cuadrado encima de todos, usted cambiaría el valor de su profundidad Z a 1 o menos.

Los números positivos en el eje Z se acercan a la pantalla, y los números negativos se alejan de ella y por lo tanto del espectador.

Es posible animar usando este efecto, pero cada capa deberá ser distinta. Ellos figurar con un valor de 0 a 0.9999.

Además, los objetos en capas encapsuladas sólo pueden colocarce detrás de otros objetos que esten en la misma capa encapsulada. Sin embargo, una capa encapsulada puede ir detrás de otra capa encapsulada.

Copy a complex convert combination between parameters of different layers?

For example: you want to copy a complicated conversion type that you have in one parameter from a layer, to other parameter (maybe not a root parameter, but a sub-parameter) of other layer. If you export the complicated conversion type from the original layer and then go to the other layer and select Connect (right click and the exported and the parameter both selected) then you have the parameter form the second layer to be exactly the same than the original one. But there is a drawback: if you modify one of the sub-parameters in the complicated conversion type (e.g. you change the value of one of them) then automatically the same sub-parameter of the other layer is changed.

How can you copy the conversion but allow modify the sub-parameters independently on each layer?

Once you have achieved the complex conversion type in the original layer, don't export the root parameter! If you have done yet unexport it. (Why?. You will understand it later.) Now duplicate the original layer. Then you should obtain the same layer with the same conversion type placed at the same parameter (but not exported). NOW export the parameter from the duplicated layer. Then go to the (sub) parameter of the layer where you want to copy the complex conversion type and Connect it to the just exported parameter form the duplicated layer. Now delete the duplicated layer (!). Then the exported ValueNode still undeleted and the layer where you wanted to copy the complex convert type have a (sub) parameter connected to it. You can unexport the ValueNode or not. It is up to you. But notice that the conversion type is already copied into other (sub) parameter of other layer and they are independent as well as you can change one of them (by modifying the sub-parameters) and the other remains untouched.

Make an existing animation run at half speed?

If you have an animation that runs from 0s to 10s and you want it to run at half speed from 0s to 20s, how can you do that?

  • Either: encapsulate it, and use the 'time offset' parameter in the encapsulation layer to slow it down:
    • Right-click 'time offset' in the encapsulation layer, convert>linear, rate -0.5 offset 0. That means offset the time by -0.5 seconds per second - or in other words, run at half speed
    • Or, putting waypoints on the 'time offset' param would work too: 0 at 0s and -10 at 20s. (The choice between using a linear convert and valuenodes is entirely up to you. They both achieve the same result in this simple case).
  • Or: use a Time Loop Layer. The first method seems better and more intuitive in this case, but there are ways of getting the same effect from the Time Loop layer. Perhaps the Time Loop layer is better if the animation doesn't run from 0s, but from some other time. Anyway: put a Time Loop layer over the layers you wish to slow down, and:
    • Either: set duration to 0, local time to 0, convert->linear the link time and set rate to 0.5 - this slows the animation down *to* 50% of its original speed; use bigger rates to slow it down less
    • Or: set duration to 1h (*), link time to 0, convert->linear the local time and set rate to 0.5 - this slows the animation down *by* 50%; use bigger rates to slow it down more

(*) if your animation is longer than 1h then set this parameter to EOT (End Of Time) what is the same as Infinite (INF) for a real number but for a time parameter.

Draw a rectangle with a given width and height?

I was asked on IRC how to specify the width and height of a rectangle, rather than having to specify the position of two opposite corners. Here's how:

  • draw a rectangle
  • go to the Params Panel
  • right-click the 'point 1' parameter and Export
  • give it a name, "p1" say
  • right-click the 'point 2' parameter and Convert to Add
  • (that's saying that rather than specifying the absolute position of the other point, you want synfig to calculate it for you)
  • (it will make 2 new sub-parameters for 'point 2', and the value used for point 2 will be their sum so we want to tell it to use 'point 1' and your (width,height))
  • open up the sub-parameters of 'point 2' by clicking the triangle to its left
  • go to the Children Panel, open up the values and select the one you exported earlier (p1)
  • right-click the "LHS" parameter in the parameters dialog and Connect it
  • then enter the width and height you want in the 'RHS' parameter

Make linked BLine vertices not affected by Rotate layer?

Mira http://dooglus.rincevent.net/synfig/logs/2008/%23synfig-2008-02-07.log Vea también: Convert.

Create dashed outlines?

If you want to make simple dashed outlines the faster way is proceed like this:

  • Create a Curve Gradient and an Outline over the same BLine using the Bline Tool options. Check both Outline and Gradient at the Tool Options Panel.
  • Raise up the gradient layer (it is created below the Outline Layer).
  • Modify the gradient Blend Method parameter to be Straight Onto. That would render the gradient onto the outline width. Also it wouldn't render the outline, so transparent portions of the gradient are transparent.
  • Check the 'Perpendicular' parameter of the Curve Gradient Layer.
  • Convert the Gradient Parameter of the Curve Gradient Layer to be one of those types: Stripes or Repeat Gradient.
  • Modify the properties of the sub parameters to achieve the desired effect.

Render to AVI with higher quality?

Using raw video

The module used by Synfig to render AVI files is ffmpeg. For the moment there is not interface to control ffmpeg options so you render with a fixed bitrate and quality. If you want the maximum quality in your AVI file, follow these steps:

  • Render your animation to yuv420p format. To do that select that target at the drop down list of the render dialog and add the ".yuv" extension to your animation name (without quotes).
  • Once rendered (it would produce a huge size yuv file) you can quickly convert it to AVI using this command:
ffmpeg -i animation.yuv -sameq animation.avi

Change the animation file name to your one.


Rendering trough png sequence.

Render your sif to png sequence

mkdir render
synfig my_animation.sifz -o render/frame.png

Then convert it to movie with ffmpeg

ffmpeg -r <frame rate> -i render/frame.%04d.png <more settings from ffmpeg's manual> my_animation.mov

If you need nice open source format without any tweaks you may try ffmpeg2theora:

ffmpeg2theora render/frame.%04d.png --inputfps <frame rate> -o my_animation.ogg

png takes less disk space then yuv. --AkhIL 21:38, 9 April 2008 (EDT)

Increase performance by optimizing during compilation time?

I would like to know what parameters do I need to apply to configure to improve performance. Genete 11:04, 9 April 2008 (EDT)

To optimize program you should set two environment variables

export CFLAGS=""
export CXXFLAGS=$CFLAGS

First flag will be "-O3" (ow three). "-02" is normal optimization. "-03" is hard optimisation.

Now you should get info about your CPU

cat /proc/cpuinfo

find your cpu model name

now go to man gcc and searc "-mtune"

find your cpu and add "-mtune=your-cpu -march=your-cpu" to CFLAGS.

Then look at flags from /proc/cpuinfo and search it in gcc manual For example I have 3dnow. So I can find "-m3dnow". For sse I can find "-msse" and "-mfpmath=sse" (can make program unstable).

Finaly you may add "-ffast-math" to disable math checks. But it can make program unstable.

For my AthlonXP I'm using this flags:

export CFLAGS="-O3 -pipe -mtune=athlon-xp -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -ffast-math -funsigned-char -fno-strict-aliasing"
export CXXFLAGS=$CFLAGS

--AkhIL 12:05, 9 April 2008 (EDT)


Languages Language: 

English