Difference between revisions of "Doc:Basic Masking"
(Created page with '<!-- Page info --> {{Title|Basic masking}} {{l|Category:Manual}} {{l|Category:Tutorials}} {{l|Category:Tutorials Basic}} <!-- Page info end --> '''This tutorial gives you an ove…') |
m (→Revealing mask method 3.: To be describe (using the linked project)) |
||
(16 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<!-- Page info --> | <!-- Page info --> | ||
{{Title|Basic masking}} | {{Title|Basic masking}} | ||
− | {{ | + | {{Category|Manual}} |
− | {{ | + | {{Category|Tutorials}} |
− | {{ | + | {{Category|Tutorials Basic}} |
+ | |||
+ | {{NewTerminology}} | ||
+ | |||
<!-- Page info end --> | <!-- Page info end --> | ||
Line 9: | Line 12: | ||
== About masking == | == About masking == | ||
− | Sometimes you want your characters to go behind objects, a building | + | Sometimes you want your characters to go behind objects, a building in the background for instance. |
If you create your background in Synfig you can probably just place the character behind the object in your layer stack but if your background is an image you need to do this by masking. | If you create your background in Synfig you can probably just place the character behind the object in your layer stack but if your background is an image you need to do this by masking. | ||
− | This tutorial will show you two basic ways of masking; hiding and revealing | + | This tutorial will show you two basic ways of masking; hiding and revealing using differents {{l|Blend Method Parameter|blend methods}} |
== Hiding == | == Hiding == | ||
− | In this masking mode everything covered by the mask shape is hidden. | + | [[Image:Masking_tut_img_01.png|frame|center]] |
− | + | In this masking mode everything covered by the mask shape is hidden. | |
− | + | ||
− | + | * Create a mask shape and place it above the elements you want to mask, either within the same group layer or above it and then grouping the mask and elements together. | |
− | + | ||
− | + | [[File:Basic Masking-tutorial 02 0.63.06.png|frame|none]] | |
− | + | ||
+ | * Set the blend method of the mask to {{l|Blend_Method_Parameter#Alpha_over|"Alpha Over"}}. | ||
+ | * Everything below the mask shape will now be hidden. | ||
+ | |||
+ | [[File:Basic Masking-tutorial 03 0.63.06.png|frame|center]] | ||
== Revealing == | == Revealing == | ||
Line 27: | Line 34: | ||
== Revealing mask method 1. == | == Revealing mask method 1. == | ||
− | + | {{note|Warning, [http://www.synfig.org/issues/thebuggenie/synfig/issues/868 actually] broken in some cases|[http://www.synfig.org/issues/thebuggenie/synfig/issues/868 Bug report #868] - Straight Onto blend method broken (both render engine) : When using groups result is the same has "Straight" on the workarea and when rendering and cobra (0991d44751f) to render empty on vector artwork. }} | |
− | + | * Create a masking shape and place it below the elements you want to mask. | |
− | + | [[File:Basic Masking-tutorial 04 0.63.06.png|frame|none]] | |
− | + | * Set the blend method of the elements you want to mask (robot layer in this case) to {{l|Blend_Method_Parameter#Straight_Onto|"Straight Onto"}}. You can only use this method on one layer at a time so if you have several objects you need to group those into one group layer. | |
− | + | * Everything above the mask will be visible, everything outside will be hidden. | |
+ | [[File:Basic Masking-tutorial 05 0.63.06.png|frame|center]] | ||
== Revealing mask method 2. == | == Revealing mask method 2. == | ||
− | This mask method is similar to the hiding mask and a bit more flexible than revealing method 1 in that you don't have to | + | This mask method is similar to the hiding mask and a bit more flexible than revealing method 1 in that you don't have to group everything that should be masked. This mask reveals everything below it, no matter how many layers. |
− | + | [[File:Basic Masking-tutorial 06 0.63.06.png|frame|none]] | |
− | + | ||
− | + | * Create a mask shape above the objects you want to mask. | |
− | + | * Tick the "Invert" option of the mask. | |
− | + | * Set blend method of mask to {{l|Blend_Method_Parameter#Alpha_over|"Alpha Over"}}. Everything below the mask shape will be visible and the rest is masked off. | |
− | + | * You can group the mask and the objects that should be masked. Anything outside of this group layer is not masked so leave the background outside in this example. | |
− | + | [[File:Basic Masking-tutorial 07 0.63.06.png|frame|none]] | |
+ | |||
+ | == Revealing mask method 3. == | ||
+ | Using one 'mask' and one 'full mask'. To be describe (using the linked project) | ||
+ | |||
+ | == Tutorial files == | ||
+ | Download [[Media:Basic_masking_tutorial_files.zip|tutorial files]]. |
Latest revision as of 18:27, 20 January 2016
This tutorial gives you an overview of how masking can be done in Synfig.
Contents
About masking
Sometimes you want your characters to go behind objects, a building in the background for instance. If you create your background in Synfig you can probably just place the character behind the object in your layer stack but if your background is an image you need to do this by masking.
This tutorial will show you two basic ways of masking; hiding and revealing using differents blend methods
Hiding
In this masking mode everything covered by the mask shape is hidden.
- Create a mask shape and place it above the elements you want to mask, either within the same group layer or above it and then grouping the mask and elements together.
- Set the blend method of the mask to "Alpha Over".
- Everything below the mask shape will now be hidden.
Revealing
A revealing mask can be achieved by two different approaches using different blend modes.
Revealing mask method 1.
Warning, actually broken in some cases Bug report #868 - Straight Onto blend method broken (both render engine) : When using groups result is the same has "Straight" on the workarea and when rendering and cobra (0991d44751f) to render empty on vector artwork.
|
- Create a masking shape and place it below the elements you want to mask.
- Set the blend method of the elements you want to mask (robot layer in this case) to "Straight Onto". You can only use this method on one layer at a time so if you have several objects you need to group those into one group layer.
- Everything above the mask will be visible, everything outside will be hidden.
Revealing mask method 2.
This mask method is similar to the hiding mask and a bit more flexible than revealing method 1 in that you don't have to group everything that should be masked. This mask reveals everything below it, no matter how many layers.
- Create a mask shape above the objects you want to mask.
- Tick the "Invert" option of the mask.
- Set blend method of mask to "Alpha Over". Everything below the mask shape will be visible and the rest is masked off.
- You can group the mask and the objects that should be masked. Anything outside of this group layer is not masked so leave the background outside in this example.
Revealing mask method 3.
Using one 'mask' and one 'full mask'. To be describe (using the linked project)
Tutorial files
Download tutorial files.