Blender Git Loki
Git Commits -> Revision fec872e
Revision fec872e by Lukas Toenne (master) July 26, 2012, 11:40 (GMT) |
Added a particle index output to the Particle Info Cycles node. This is required to get consistent ID numbers for particles. The Object ID is not usable since it's a user defined value of the instanced object, which does not vary per instance. Also the random value from the object info node is not consistent over time, since it only depends on the index in the dupli list (so each emitted or dying particle shifts the value). The particle index is always the same for a specific particle. Randomized values can be generated from this with the use of a noise texture. |
Commit Details:
Full Hash: fec872ef9c0bb6904cbe9a7b59b3f51ae7bb0702
SVN Revision: 49247
Parent Commit: 53a861b
Lines Changed: +35, -6
8 Modified Paths:
/intern/cycles/blender/blender_particles.cpp (+4, -0) (Diff)
/intern/cycles/kernel/kernel_object.h (+9, -2) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+6, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -0) (Diff)
/intern/cycles/render/nodes.cpp (+9, -0) (Diff)
/intern/cycles/render/object.cpp (+1, -1) (Diff)
/intern/cycles/render/object.h (+1, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_particle_info.c (+4, -3) (Diff)
/intern/cycles/kernel/kernel_object.h (+9, -2) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+6, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+1, -0) (Diff)
/intern/cycles/render/nodes.cpp (+9, -0) (Diff)
/intern/cycles/render/object.cpp (+1, -1) (Diff)
/intern/cycles/render/object.h (+1, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_particle_info.c (+4, -3) (Diff)