Blender Git Commit Log

Git Commits -> Revision bdae647

Revision bdae647 by Lukas Toenne (master)
March 24, 2016, 11:07 (GMT)
Color sources for point density textures based on mesh vertices

This patch adds support for coloring point density textures based on several mesh vertex attributes.

* Vertex Color: Use a vertex color layer for coloring the point density texture
* Vertex Weight: Use a weights from a vertex group as intensity values. (for Blender Render engine the additional color band is used)
* Vertex Normals: Use object-space vertex normals as RGB values.

The vertex color source enum is stored separately from the particle color source, to avoid invalid values when switching.

Note that vertex colors are technically "corner colors" (MLoop), so each vertex can have as many colors as faces it is part of.
For the purpose of point density the mloop colors are simply averaged, which is physically plausible because corners can be viewed
as multiple points in the same location.

Commit Details:

Full Hash: bdae647670817f4c09d4c871314f237dde1bfaac
Parent Commit: 8e9a55f
Lines Changed: +457, -147

7 Modified Paths:

/release/scripts/startup/bl_ui/properties_texture.py (+13, -4) (Diff)
/source/blender/editors/space_node/drawnode.c (+17, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_texture_types.h (+20, -9) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+48, -8) (Diff)
/source/blender/makesrna/intern/rna_texture.c (+21, -3) (Diff)
/source/blender/render/intern/source/pointdensity.c (+330, -121) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021