Blender Git Commit Log

Git Commits -> Revision 396d0b5

Revision 396d0b5 by Jacques Lucke (master)
August 2, 2020, 20:10 (GMT)
Particles: new Age Reached Event, Kill Particle and Random Float node

The hardcoded age limit is now gone. The behavior can be implemented
with an Age Reached Event and Kill Particle node. Other utility nodes
to handle age limits of particles can be added later. Adding an
Age Limit attribute to particles on birth will be useful for some effects,
e.g. when you want to control the color or size of a particle over its
life time.

The Random Float node takes a seed currently. Different nodes will
produce different values even with the same seed. However, the same
node will generate the same random number for the same seed every
time. The "Hash" of a particle can be used as seed. Later, we'd want
to have more modes in the node to make it more user friendly.
Modes could be: Per Particle, Per Time, Per Particle Per Time,
Per Node Instance, ...
Also a Random Vector node will be useful, as it currently has to be
build using three Random Float nodes.

Commit Details:

Full Hash: 396d0b5cd0bcd9dd3dfa8d9006ee9f6f91c7196d
Parent Commit: d106357
Lines Changed: +298, -41

3 Added Paths:

/source/blender/nodes/function/nodes/node_fn_random_float.cc (+89, -0) (View)
/source/blender/nodes/simulation/nodes/node_sim_age_reached_event.cc (+38, -0) (View)
/source/blender/nodes/simulation/nodes/node_sim_kill_particle.cc (+36, -0) (View)

13 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+3, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+3, -0) (Diff)
/source/blender/blenkernel/intern/node.c (+3, -0) (Diff)
/source/blender/functions/intern/attributes_ref.cc (+4, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+3, -0) (Diff)
/source/blender/nodes/NOD_function.h (+1, -0) (Diff)
/source/blender/nodes/NOD_simulation.h (+2, -0) (Diff)
/source/blender/nodes/NOD_static_types.h (+3, -1) (Diff)
/source/blender/nodes/simulation/nodes/node_sim_particle_mesh_emitter.cc (+1, -0) (Diff)
/source/blender/simulation/intern/particle_mesh_emitter.cc (+10, -0) (Diff)
/source/blender/simulation/intern/particle_mesh_emitter.hh (+5, -2) (Diff)
/source/blender/simulation/intern/simulation_collect_influences.cc (+95, -37) (Diff)
/source/blender/simulation/intern/simulation_solver.cc (+2, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021