blender/release/scripts/startup/bl_ui
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
..
__init__.py use a dynamic enum for addons, annoyingly the enum was being generated from python for each of the addon buttons (~14 times per draw) which was noticeably slow, so disabling 'expand' for now. 2011-05-26 18:11:59 +00:00
properties_animviz.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_data_armature.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_data_bone.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_data_camera.py camera composition guides: center, thirds, golden rule 2011-05-10 03:03:53 +00:00
properties_data_curve.py pep8 compliance 2011-06-21 17:17:51 +00:00
properties_data_empty.py correct spelling error and some pep8 changes. 2011-05-26 09:33:51 +00:00
properties_data_lamp.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_data_lattice.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_data_mesh.py fix for python error when pinning a non mesh object in mesh editmode. 2011-07-03 07:21:33 +00:00
properties_data_metaball.py pep8 compliance 2011-06-21 17:17:51 +00:00
properties_data_modifier.py pep8 compliance 2011-06-21 17:17:51 +00:00
properties_game.py Related to bug #27004: there is now an option to disable color management for 2011-05-02 09:08:43 +00:00
properties_material.py Current situation 2011-07-04 18:14:41 +00:00
properties_object_constraint.py pep8 compliance 2011-06-21 17:17:51 +00:00
properties_object.py Fixes related to using Library files: 2011-04-08 16:56:44 +00:00
properties_particle.py minor pep8 edits 2011-07-01 12:33:34 +00:00
properties_physics_cloth.py =trunk= 2011-05-01 21:39:13 +00:00
properties_physics_common.py py api: bpy.data.is_dirty wasn't working like image is dirty, instead is would return if the file was saved or not. 2011-04-11 15:31:05 +00:00
properties_physics_field.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_physics_fluid.py Elbeem / Fluidsim update: 2011-06-12 23:51:30 +00:00
properties_physics_smoke.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_physics_softbody.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_render.py Current situation 2011-07-04 18:14:41 +00:00
properties_scene.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
properties_texture.py fix [#27148] *Invalid Path* in all "operator presets" dropdowns 2011-05-02 17:29:30 +00:00
properties_world.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_console.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_dopesheet.py quiet warning & minor pep8 edits. 2011-04-04 22:42:43 +00:00
space_filebrowser.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_graph.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_image.py make drawing faces in the UV editor an image space option, re-using the mesh option was lazy and doesn't make much sense. 2011-06-28 09:42:17 +00:00
space_info.py Blender 2.58 release preparations: 2011-06-20 20:21:52 +00:00
space_logic.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_nla.py minor pep8 edits, also added 'test_pep8' & 'test_cmake' to the GNUmakefile for convenience. 2011-04-10 10:45:56 +00:00
space_node.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_outliner.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_sequencer.py Since scene sequence strips use the 'use_sequencer' setting, make it available in the sequencer panel. 2011-06-13 21:35:24 +00:00
space_text.py 2.5 Text Editor: 2011-06-06 12:52:26 +00:00
space_time.py fix [#26754] Live Edit and Editing UI scripts don't work 2011-04-04 10:13:04 +00:00
space_userpref_keymap.py Fix #27490: export key configuration gave error when trying to export 2011-06-01 14:35:14 +00:00
space_userpref.py minor pep8 edits 2011-07-01 12:33:34 +00:00
space_view3d_toolbar.py Minor warning cleanup & fix 2011-06-27 03:36:14 +00:00
space_view3d.py fix for editmode option toggle 2011-06-27 11:40:15 +00:00