Blender Git Loki
Git Commits -> Revision 3deb210
Revision 3deb210 by Jacques Lucke (master) December 18, 2020, 15:02 (GMT) |
Geometry Nodes: support randomly picking instances from collection This uses the "id" attribute to randomly pick instances from a collection for each point. There is one issue. When the collection is updated (e.g. when an object is added to it), the nodes modifier is not automatically updated. It seems like we don't have the infrastructure to support this dependency yet. The same issue exists in the Boolean modifier and with collision collections. This should be solved separately soonish. When "Whole Collection" is disabled, one direct child of the input collection is instanced at each point. A direct child can be an object or a collection. Currently, all objects are picked approximately equally often. In the future, we will provide more control over which point gets which instance. Differential Revision: https://developer.blender.org/D9884 Ref T82372. |
Commit Details:
Full Hash: 3deb21055ad16618b80297b7a82bca46b7b9c1f9
Parent Commit: 1be465c
Lines Changed: +141, -50
6 Modified Paths:
/source/blender/editors/space_node/drawnode.c (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+5, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+1, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_randomize.cc (+18, -15) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc (+111, -35) (Diff)
/source/blender/nodes/geometry/node_geometry_util.hh (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+5, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+1, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_randomize.cc (+18, -15) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc (+111, -35) (Diff)
/source/blender/nodes/geometry/node_geometry_util.hh (+3, -0) (Diff)