blender/release
Jeroen Bakker c4491f558b Current situation
A mesh can consist out of multiple material. Take a character with clothing's. the skin can be a different material as the different clothing's. During compositing it is a common use-case to only do a part of the composit on only a specific material. Currently this can not be done.

In blender movies this feature is known to be implemented, but until now it never got integrated into trunk.
Proposal

With material index the Blender internal renderer will be capable of creating a buffer containing the material indexes of the first pixel-hit. This will be implemented in the same manner as the object index.

In the compositor the ID Mask node can be used to extract the information out of the Render pass.
Impact
User interface

On the properties-space the next changes will be done

    Scene⇒Render layer⇒Passes⇒Material index will be added
    Material⇒Options⇒Pass index will be added

DNA

    Material struct will get an new field called “index”. this will be a short-type.
    Material struct the field pad will be removed.
    A new Render-layer pass will be added (bit 1«18)

RNA

    Material RNA is updated (based on “pass index” from object)
    Render layer RNA is updated (based on IndexOB)

Blender internal renderer

The Blender internal renderer will process the render pass as a copy of the Object index.
Blender compositor

The render layer input will get a new output socket called “IndexMA”
Usage

An example on how to use material index can be found at:

https://svn.blender.org/svnroot/bf-blender/trunk/lib/tests/compositing/composite_materialindex.blend

This is also example of a commit message longer than the commit itself :)
2011-07-04 18:14:41 +00:00
..
bin patch [#25972] blender-thumbnailer.py: GVFS support 2011-02-09 02:09:30 +00:00
datafiles New 2.58 splash image. Thanks Rogério Perdiz! 2011-06-21 16:54:34 +00:00
freedesktop cmake - install icons into $PREFIX/share/icons/hicolor/ rather then $PREFIX/share/pixmaps/, also move blender icon into 'apps' dir. 2011-04-21 06:37:54 +00:00
irix-6.2-mips correct fsf address 2010-02-12 13:34:04 +00:00
plugins converted more mixed tab/space indentations to tabs. only whitespace changes. 2011-04-21 15:53:30 +00:00
scripts Current situation 2011-07-04 18:14:41 +00:00
text correct FSF address, as pointed out by Dave Plater 2011-06-21 05:01:54 +00:00
windows Fix #27481: windows uninstaller could remove files unrelated to blender 2011-06-01 13:13:55 +00:00
environment-macosx Continue development of bfile system. 2009-10-19 18:44:09 +00:00
environment-mswindows set svn end of lines to native 2011-05-09 08:15:38 +00:00
environment-unix Continue development of bfile system. 2009-10-19 18:44:09 +00:00