Difference between revisions of "Doc:Brushes"
(Still WIP) |
(Still WIP) |
||
Line 56: | Line 56: | ||
# Repeat the same but with the Amount paramter of the Zoom layer. AS well as the Amount parameter of the zoom layer has not visual interface (hasn't any duck associated) you have to export the parameter (right click export) and then select it from the Child panel. Then you can make the right click and Link to Bline operations. | # Repeat the same but with the Amount paramter of the Zoom layer. AS well as the Amount parameter of the zoom layer has not visual interface (hasn't any duck associated) you have to export the parameter (right click export) and then select it from the Child panel. Then you can make the right click and Link to Bline operations. | ||
# Onto the Paste Canvas layer create a Duplicate Layer. Encalsulate both to avoid unuseful duplications of the stuff below the Duplciate Layer. It would produce a Child parameter (probably called "Index1" if that's your first Duplicate layer). Select the Index parameter from the Child Panel. | # Onto the Paste Canvas layer create a Duplicate Layer. Encalsulate both to avoid unuseful duplications of the stuff below the Duplciate Layer. It would produce a Child parameter (probably called "Index1" if that's your first Duplicate layer). Select the Index parameter from the Child Panel. | ||
− | # Now go to the Paste canvas layer. Search for the Origin parameter (that now is a converted type) and expand it. Look for the Amount parameter. This parameter should have a value between 0.0 and 1.0 depending on where did you made click to the outline. Make right click over it and select Convert->Scale. Expand it again and select the "Link" parameter (it should be a Real) and make right click and select "Connect". It would connect the Link parameter to the Index parameter (already selected from the child panel). The default values for | + | # Now go to the Paste canvas layer. Search for the Origin parameter (that now is a converted type) and expand it. Look for the Amount parameter. This parameter should have a value between 0.0 and 1.0 depending on where did you made click to the outline. Make right click over it and select Convert->Scale. Expand it again and select the "Link" parameter (it should be a Real) and make right click and select "Connect". It would connect the Link parameter to the Index parameter (already selected from the child panel). The default values for Index parameter is to duplicate from 1.0 to 3.0 so a this moment the duplicated brushes images are all placed at the end of the outline bline because all they have a value bigger or equal than 1.0. |
+ | #Repeat the same procedure for the Amount sub-parameter of the Angle parameter of the Rotate layer and the Amount sub-parameter of the Amount parameter of the Zoom layer. | ||
+ | # It is the time of spread the position of the duplicated brushes along the bline. To do that you have to properly scale the Amount sub-parameter of each converted to Link to Bline parameter. Go to the Paste Canvas Layer and expand the Origin parameter. Expand the Amount sub-parameter (already converted to a Scale) and look to the "Scale" parameter. This paramter has a default value of 1.0. Make right click over it and select Covnert->Reciprocal. It would produce two sub-parameter more: Link, Epsilon and Infinite. Leave Epsilon and Infinite as they are and modify the Link one to be 3.0. Voila! the brush is spreaded along the bline! | ||
+ | # Now export the Link sub-parameter (that you have just modified) by right click and "Export". Give a meaning name (for example "b-amount") | ||
+ | # Go to the child panel and select the just exported one. | ||
+ | # Without leaving the Origin parameter search for the following sub-parameter: Origin(Bline Origin)->Amount(Sacle)->Link(Duplicate)->To. This parameter is the end of the loop of the Duplciate layer. Select it and make right click. As well as the exported b-amount is selected you can select Link from the context menu. It would make the Duplciate layer repeat it as many times says the b-amount value. By going to the Child Panel and changing the "b-amount" parameter to a high value (for example 100) make the brush to fill all the bline. Do you get the idea? |
Revision as of 12:51, 7 May 2008
Contents
Introduction
The Outlines that you can draw with Synfig are formed by a rounded brush. The brush is defined by a radius that you can modify by its brush editor widget. This tutorial explains how to make brushed outlines that would improve sustantially your artwork.
What do I need to use brushes?
A brush image
Well, for the moment Synfig hasn't any brush image included so you'll need to do them by your self or grab from the free resources (insert link here to those resources).
Here are some examples of brushes (insert some brushes images here)
Brushes images are just any kind of image file that allow transparency (PNG, TIFF, GIF). More resolution your image has more big your brush size can be without pixelation. Huge file sizes would take more time to render. The balance between both options is your desition.
Anyway you can use anything that can be visible under synfig as a brush. See below.
A recent Release
Brushes are not a primary feature of Synfig. They are obtained from the combintation of the following features:
- Duplicate Layer what implies SVN revision >= 1358
- Link to Bline (what uses the following conver types):
- Bline Vertex, what implies SVN revision >= 774
- Bline Tangent, what implies SVN revision >= 1863
- Bline Width, what implies SVN revision >= 1872
Strictly the Link to Bline feature is not needed but it would help on make several conversion types and linking.
The Idea
The idea of brushes is to use the Duplicate layer feature with the Link to Bline (automatic or manual) feature given by the conversion types.
When you link a vertex to a bline (or a tangent or a width) it converts your parameter to the following sub-parameters.
- bline "BLine"
- bool "Loop"
- real "Amount"
There are other particular paramters for tangent or width that will be revised in other section.
bline "Bline" is the bline where the parameter (vertex, tangent or width) is linked to. In the case of the vertex it means that the vertex lies on the bline given by its "Amount" parameter. When Amount is 0.0 the vertex position is the Bline begin. When Amount is 1.0 the vertex position is the Bline end. When Loop is "on" values outside the [0.0, 1.0] range are forced to be in that range by eliminating the integer part of the number.
On the other hand the Duplicate layer allows duplicate the render of everithing that is below it as manu times as the Index parameter indicates. Also if you link any parameter to that Index one the parameter is modified according to the index before it is multiple rendered by the Duplicate layer. It allows apply some kind of transformation to the layers at the same time you duplicate them.
Combining those two features (Link to Bline and Duplicate) you can achieve the emulation of brushes in synfig.
The procedure
It is supposed you already have an outline wher you would like to apply the brush. If not available create it now.
These are the steps you need to follow:
- Caret Menu->File->Import. Select your image file for the brush. You can also use an existing layer to do that, even a canvas with an animation inside. It doesnt matter what you use as brush, the procedure is always the same.
- Create a Rotate layer onto the brush layer.
- Create a Zoom layer onto the Rotate layer.
- Select Zoom, Rotate and your brush layer and encapsulate them. It would produce a Paste Canvas Layer.
- Select the Paste Canvas Layer and also select your outline layer. Make click on the Paste Canvas Layer Origin duck (beware that it can be below the Origin of the outline layer -both at (0,0) by default-) and make right click on the outline (avoid any duck). Select the "Link to Bline" option.
- Repeat above step but do it with the angle duck of the Rotate layer instead of the Origin of the Paste Canvas Layer. It doesn't matter if you make right click on the same place of the outline bline or not. Later it will be fixed.
- Repeat the same but with the Amount paramter of the Zoom layer. AS well as the Amount parameter of the zoom layer has not visual interface (hasn't any duck associated) you have to export the parameter (right click export) and then select it from the Child panel. Then you can make the right click and Link to Bline operations.
- Onto the Paste Canvas layer create a Duplicate Layer. Encalsulate both to avoid unuseful duplications of the stuff below the Duplciate Layer. It would produce a Child parameter (probably called "Index1" if that's your first Duplicate layer). Select the Index parameter from the Child Panel.
- Now go to the Paste canvas layer. Search for the Origin parameter (that now is a converted type) and expand it. Look for the Amount parameter. This parameter should have a value between 0.0 and 1.0 depending on where did you made click to the outline. Make right click over it and select Convert->Scale. Expand it again and select the "Link" parameter (it should be a Real) and make right click and select "Connect". It would connect the Link parameter to the Index parameter (already selected from the child panel). The default values for Index parameter is to duplicate from 1.0 to 3.0 so a this moment the duplicated brushes images are all placed at the end of the outline bline because all they have a value bigger or equal than 1.0.
- Repeat the same procedure for the Amount sub-parameter of the Angle parameter of the Rotate layer and the Amount sub-parameter of the Amount parameter of the Zoom layer.
- It is the time of spread the position of the duplicated brushes along the bline. To do that you have to properly scale the Amount sub-parameter of each converted to Link to Bline parameter. Go to the Paste Canvas Layer and expand the Origin parameter. Expand the Amount sub-parameter (already converted to a Scale) and look to the "Scale" parameter. This paramter has a default value of 1.0. Make right click over it and select Covnert->Reciprocal. It would produce two sub-parameter more: Link, Epsilon and Infinite. Leave Epsilon and Infinite as they are and modify the Link one to be 3.0. Voila! the brush is spreaded along the bline!
- Now export the Link sub-parameter (that you have just modified) by right click and "Export". Give a meaning name (for example "b-amount")
- Go to the child panel and select the just exported one.
- Without leaving the Origin parameter search for the following sub-parameter: Origin(Bline Origin)->Amount(Sacle)->Link(Duplicate)->To. This parameter is the end of the loop of the Duplciate layer. Select it and make right click. As well as the exported b-amount is selected you can select Link from the context menu. It would make the Duplciate layer repeat it as many times says the b-amount value. By going to the Child Panel and changing the "b-amount" parameter to a high value (for example 100) make the brush to fill all the bline. Do you get the idea?