Blender Git Commit Log
Git Commits -> Revision 9c76ff3
Revision 9c76ff3 by Janne Karhu (master) December 7, 2010, 12:58 (GMT) |
"Particle" texture coordinates for halo materials: * Particle age can now be used as the texture x-coordinate, and location in a particle trail as the y-coordinate. * This finally enables particles in 2.5 to change their color (or any other texturable material property) by their age. * In 2.4x this was accomplished with the "100 frames == particle age", but this was both non-intuitive and slow as the animation system had to be recalculated for every particle. * Currently these are 2d coordinates (age/lifetime == x-coordinate, trail particle index/number of trail particles == y-coordinate), but other particle properties or possibly even a user definable property can be added as coordinates in the future. * On the code side this uses the same coordinate definition number (for halo materials) as strand coordinates (for surface materials). This is also nice as they intuitively mean nearly the same thing, i.e. along strand or during particle life. |
Commit Details:
Full Hash: 9c76ff3f2ebd72e7c0c369407508bf39261b62c6
SVN Revision: 33540
Parent Commit: a98fc75
Lines Changed: +28, -43
5 Modified Paths:
/source/blender/makesdna/DNA_material_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_material.c (+1, -1) (Diff)
/source/blender/render/intern/include/renderdatabase.h (+1, -1) (Diff)
/source/blender/render/intern/source/convertblender.c (+18, -40) (Diff)
/source/blender/render/intern/source/renderdatabase.c (+7, -1) (Diff)
/source/blender/makesrna/intern/rna_material.c (+1, -1) (Diff)
/source/blender/render/intern/include/renderdatabase.h (+1, -1) (Diff)
/source/blender/render/intern/source/convertblender.c (+18, -40) (Diff)
/source/blender/render/intern/source/renderdatabase.c (+7, -1) (Diff)