Blender Git Loki

Git Commits -> Revision 5e1bbde

Revision 5e1bbde by Lukas Toenne (master)
June 8, 2012, 16:17 (GMT)
Particle Info node for Cycles. This can be used to access particle information in material shaders for dupli objects. For now only the particle Age and individual Lifetime (in frames) are supported, more attributes can be added when needed.

The particle data is stored in a separate texture if any of the dupli objects uses particle info nodes in shaders. To map dupli objects onto particles the store an additional particle_index value, which is different from the simple dupli object index (only visible particles, also works for particle dupli groups mode).

Some simple use cases on the code.blender.org blog:
http://code.blender.org/index.php/2012/05/particle-info-node/

Commit Details:

Full Hash: 5e1bbde01d0a77c7b032197cff860305462a9cb2
SVN Revision: 47616
Parent Commit: 82d3d9f
Lines Changed: +460, -50

2 Added Paths:

/intern/cycles/blender/blender_particles.cpp (+158, -0) (View)
/source/blender/nodes/shader/nodes/node_shader_particle_info.c (+48, -0) (View)

23 Modified Paths:

/intern/cycles/blender/blender_object.cpp (+23, -20) (Diff)
/intern/cycles/blender/blender_shader.cpp (+4, -0) (Diff)
/intern/cycles/blender/blender_sync.h (+4, -1) (Diff)
/intern/cycles/blender/CMakeLists.txt (+1, -0) (Diff)
/intern/cycles/kernel/kernel_object.h (+25, -0) (Diff)
/intern/cycles/kernel/kernel_textures.h (+3, -0) (Diff)
/intern/cycles/kernel/kernel_types.h (+2, -0) (Diff)
/intern/cycles/kernel/svm/svm.h (+3, -0) (Diff)
/intern/cycles/kernel/svm/svm_geometry.h (+22, -0) (Diff)
/intern/cycles/kernel/svm/svm_types.h (+7, -1) (Diff)
/intern/cycles/render/nodes.cpp (+41, -0) (Diff)
/intern/cycles/render/nodes.h (+6, -0) (Diff)
/intern/cycles/render/object.cpp (+43, -1) (Diff)
/intern/cycles/render/object.h (+9, -0) (Diff)
/intern/cycles/render/scene.h (+3, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/anim.c (+34, -27) (Diff)
/source/blender/blenkernel/intern/node.c (+1, -0) (Diff)
/source/blender/makesdna/DNA_object_types.h (+9, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree_types.h (+1, -0) (Diff)
/source/blender/makesrna/intern/rna_object.c (+10, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/NOD_shader.h (+1, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021