Blender Git Loki

Git Commits -> Revision 76f386a

Revision 76f386a by Hans Goudey (master)
October 15, 2021, 19:09 (GMT)
Geometry Nodes: Fields transfer attribute node

This commit adds an updated version of the old attribute transfer node.
It works like a function node, so it works in the context of a
geometry, with a simple data output.

The "Nearest" mode finds the nearest element of the specified domain on
the target geometry and copies the value directly from the target input.

The "Nearest Face Interpolated" finds the nearest point on anywhere on
the surface of the target mesh and linearly interpolates the value on
the target from the face's corners.

The node also has a new "Index" mode, which can pick data from specific
indices on the target geometry. The implicit default is to do a simple
copy from the target geometry, but any indices could be used. It is also
possible to use a single value for the index to to retrieve a single
value from an attribute at a certain index.

Differential Revision: https://developer.blender.org/D12785

Commit Details:

Full Hash: 76f386a37a9cf14ac729be048230f81a0a397fc8
Parent Commit: 47a72ac
Lines Changed: +989, -35

1 Added Path:

/source/blender/nodes/geometry/nodes/node_geo_transfer_attribute.cc (+832, -0) (View)

13 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_mesh_sample.hh (+9, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+2, -1) (Diff)
/source/blender/blenkernel/intern/mesh_sample.cc (+36, -20) (Diff)
/source/blender/blenkernel/intern/node.cc (+2, -1) (Diff)
/source/blender/makesdna/DNA_node_types.h (+16, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+60, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_transfer.cc (+1, -1) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_distribute.cc (+13, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc (+13, -5) (Diff)
/source/blender/nodes/NOD_geometry.h (+2, -1) (Diff)
/source/blender/nodes/NOD_static_types.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