Basic masking

From Synfig Studio :: Documentation
Jump to: navigation, search
(Terminology Updated)
m (screen shot update + remove </br> + formating "real" unordered lists)
Line 18: Line 18:
  
 
== Hiding ==
 
== Hiding ==
In this masking mode everything covered by the mask shape is hidden.<br/>
+
[[Image:Masking_tut_img_01.png|frame|center]]
{{l|Image:Masking_tut_img_01.png}}<br/>
+
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.<br/>
+
 
{{l|Image:Masking_tut_img_02.png}}<br/>
+
* 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".<br/>
+
 
Everything below the mask shape will now be hidden.<br/>
+
[[File:Basic Masking-tutorial 02 0.63.06.png|frame|none]]
{{l|Image:Hiding_mask.png}}<br/>
+
 
 +
* Set the blend method of the mask to "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 30: Line 35:
  
 
== Revealing mask method 1. ==
 
== Revealing mask method 1. ==
Create a masking shape and place it below the elements you want to mask.<br/>
+
* Create a masking shape and place it below the elements you want to mask.
{{l|Image:Masking_tut_img_04.png}}<br/>
+
[[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 "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.<br/>
+
* 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.<br/>
+
* Everything above the mask will be visible, everything outside will be hidden.
{{l|Image:Revealing_mask_1.png}}<br/>
+
[[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 group everything that should be masked. This mask reveals everything below it, no matter how many layers.<br/>
+
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.
{{l|Image:Masking_tut_img_07.png}}<br/>
+
{{l|Image:Masking_tut_img_07.png}}
Create a mask shape above the objects you want to mask.<br/>
+
* Create a mask shape above the objects you want to mask.
Tick the "Invert" option of the mask.<br/>
+
* 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.<br/>
+
* 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.<br/>
+
* 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.
{{l|Image:Revealing_mask_2.png}}<br/>
+
{{l|Image:Revealing_mask_2.png}}
  
 
Download [[Media:Synfig_masking_tutorial_files.zip|tutorial files]].
 
Download [[Media:Synfig_masking_tutorial_files.zip|tutorial files]].

Revision as of 12:19, 25 April 2013

Languages Language: 

English • Deutsch • español • français • română • русский



This tutorial gives you an overview of how masking can be done in Synfig.

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.

Hiding

Masking tut img 01.png

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.
Basic Masking-tutorial 02 0.63.06.png
  • Set the blend method of the mask to "Alpha Over".
  • Everything below the mask shape will now be hidden.
Basic Masking-tutorial 03 0.63.06.png


Revealing

A revealing mask can be achieved by two different approaches using different blend modes.

Revealing mask method 1.

  • Create a masking shape and place it below the elements you want to mask.
Basic Masking-tutorial 04 0.63.06.png
  • 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.
Basic Masking-tutorial 05 0.63.06.png

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. Image:Masking_tut_img_07.png

  • 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.

Image:Revealing_mask_2.png

Download tutorial files.


Languages Language: 

English • Deutsch • español • français • română • русский