Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Blender Compositing and Post Processing

You're reading from   Blender Compositing and Post Processing From basic grading techniques through to advanced lighting and camera effects, this guide to compositing with Blender teaches digital CG artists the way to bring a new level of dynamism and realism to their footage.

Arrow left icon
Product type Paperback
Published in Jan 2014
Publisher
ISBN-13 9781782161127
Length 114 pages
Edition Edition
Languages
Tools
Arrow right icon
Toc

Generating mattes using the ID Mask node


There will be many instances during CG compositing where a few specific meshes in the image would require a mask pass. This provides control to modify specific pixels. To obtain these mattes, the ID Mask node can be used along with the information stored in Object Index or Material Index passes.

When given a value for the index, the ID Mask node creates a mask for the meshes that have the same value assigned as their Pass Index value, as shown in the following screenshot. All these Pass Index values of meshes can be obtained using the Object Index pass. The Object or Material Index pass has to be connected to the ID value socket of the ID Mask node, for the node to pick the Index values. The generated mask information can be used as an input for the Fac sockets available to many Blender nodes to affect only the required mesh.

In the following screenshot, assigning Pass Index to one of the three cubes and enabling the Object Index pass is explained....

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime