Tutorial: using texture stencils
By olivS, dimanche 27 février 2005 à 21:45 :: Blender tutorials :: #16 :: rss :: PDF

Stencil is one of the most useful tip when you want to control finely the way the shader changes from one texture to another, on the same object, and with the use of a single material index.
File(s) Attached :
- No file available for download
For Blender: 2.33 - Version française disponible(
) - Artykuł dostępny po polsku(
)
::Reminder on how to use texturing::
Start Blender, or reset it (CTRL X) in order to get back to the default scene (the lonely cube at the center of the scene). Select the cube, and then in the Shading menu, (F5 key), delete the current material with the cross-icon on the side of its name. Then add a new material by clicking on the Add New button.

Toggle to the Texture buttons menu (F6 key). Select the first empty slot, and add a new texture by clicking on the Add New button.

As Texture type, choose the Image option. Browse your hard disk up to the location of the picture you want to use as a texture.
Come back to the Shading menu (F5 key). On the right end, you will find three tabs that helps you control how Blender manages the textures you just have set.
The first tab, Texture, lets you choose anyone of the ten textures allowed; in order to activate one, you just have to click on its name.

The second tab, Map Input, is more subtle. More precisely, it lets you choose between many kind of projections (Flat, Cube, Sphere, Tube) of the texture on your object, but also sets the dimensions of the texture (SizeX, SizeY and SizeZ) and the offset of texture versus its origin (OfsX, OfsY and OfsZ).

The last tab, Map To, lets you choose which channel of the Shader is effected by the selected texture. Most of the time, your texture will effect the color (Col) of your object, its roughness (Nor) or its transparency (Alpha), among many other options. In this pannel you will also find a very well hidden button: Stencil.

::Using a stencil texture::
As we just saw it, we can add up to ten textures for a Shader. What is meaningful to notice is that these textures stack over each other. For example, if you have two textures absolutely not transparent (Col 1.0 and Alpha unchecked), the second texture (starting from the top of the list of the ten space available) will mask the first one (at the top of the list).
But perhaps you would better like to see the second texture showing some "holes" so that you could see, on some spots, the texture set before it (from the top of the list). In order to do so, you will have to insert, between these two textures, a third texture, the Stencil texture.

- Hint: if you have already inserted two textures in the first two empty slots, use the buttons to copy/paste to/from the buffer in order to sort them: select the second texture (from the top of the list), and click on the small arrow going upward. Now, select, the third space (from the top of the list), actually blank, and click on the small arrow going downward. Now select the texture from the second slot (from the top of the list) and press Clear in order to delete it.
Now, select the texture that should do the Stenciling job, which should be located between the first and the second texture. Toggle to the Map Input tab, de-activate the Col button and activate Stencil button. That's it!

The next picture shows the three textures used, and the way they interact in order to produce the final picture.

::Interesting uses::
You can also use, as a Stencil texture, bitmaps picture in grey tones, or Blender's procedural textures, particularly the Blend type, which works very well with this kind of use.
- Hint: If you use a bitmap image as stencil texture, think about activating the No RGB button.









Comments
1. On vendredi 4 mars 2005 à 23:13, by jack
2. On lundi 7 mars 2005 à 23:02, by lascapi
3. On samedi 12 mars 2005 à 22:22, by Fabien Terrani
4. On mardi 22 mars 2005 à 06:29, by Ahmed F.
5. On samedi 5 novembre 2005 à 02:20, by mj
6. On mardi 21 février 2006 à 18:50, by Xavier
7. On mardi 21 février 2006 à 20:56, by olivS
8. On lundi 8 mai 2006 à 18:05, by Ano
9. On vendredi 12 mai 2006 à 08:31, by olivS
10. On mardi 19 décembre 2006 à 22:58, by Jean_R
11. On mercredi 20 décembre 2006 à 11:37, by degrysin
12. On jeudi 21 décembre 2006 à 10:41, by solmax
13. On jeudi 21 décembre 2006 à 18:42, by Renato Perini
14. On jeudi 1 février 2007 à 08:45, by pio
15. On jeudi 15 février 2007 à 09:02, by Brooksy
16. On dimanche 11 mars 2007 à 11:56, by Florin
17. On jeudi 17 mai 2007 à 03:32, by nf3
18. On jeudi 13 septembre 2007 à 09:26, by olivS
19. On lundi 24 septembre 2007 à 11:29, by actus
20. On jeudi 25 octobre 2007 à 00:14, by dude
Réponse de olivS le jeudi 25 octobre 2007 à 21:42
21. On vendredi 18 janvier 2008 à 13:16, by AGreat1
Réponse de olivS le samedi 26 janvier 2008 à 17:37
22. On lundi 21 janvier 2008 à 21:42, by MIke
Réponse de olivS le samedi 26 janvier 2008 à 17:36
23. On mardi 17 juin 2008 à 11:48, by Nilupul
24. On samedi 2 août 2008 à 21:22, by abab
Réponse de olivS le lundi 4 août 2008 à 19:51
25. On dimanche 24 août 2008 à 16:37, by IKaC
26. On samedi 4 octobre 2008 à 19:57, by Xavier
27. On lundi 27 octobre 2008 à 09:54, by Kevin
28. On mercredi 19 novembre 2008 à 01:20, by Dalorian
29. On jeudi 15 janvier 2009 à 02:37, by Colic
30. On samedi 31 janvier 2009 à 09:33, by TakaMitsukai
31. On dimanche 15 mars 2009 à 17:48, by matthew
32. On jeudi 19 mars 2009 à 01:33, by RH2
Add a comment