Blender Git Loki

Git Commits -> Revision d191767

Revision d191767 by Hans Goudey (cycles_texture_cache)
May 6, 2021, 09:25 (GMT)
Geometry Nodes: Initial basic curve data support

This patch adds initial curve support to geometry nodes. Currently
there is only one node available, the "Curve to Mesh" node, T87428.

However, the aim of the changes here is larger than just supporting
curve data in nodes-- it also uses the opportunity to add better spline
data structures, intended to replace the existing curve evaluation code.
The curve code in Blender is quite old, and it's generally regarded as
some of the messiest, hardest-to-understand code as well. The classes
in `BKE_spline.hh` aim to be faster, more extensible, and much more
easily understandable. Further explanation can be found in comments in
that file.

Initial builtin spline attributes are supported-- reading and writing
from the `cyclic` and `resolution` attributes works with any of the
attribute nodes. Also, only Z-up normal calculation is implemented
at the moment, and tilts do not apply yet.

**Limitations**
- For now, you must bring curves into the node tree with an "Object
Info" node. Changes to the curve modifier stack will come later.
- Converting to a mesh is necessary to visualize the curve data.

Further progress can be tracked in: T87245
Higher level design document: https://wiki.blender.org/wiki/Modules/Physics_Nodes/Projects/EverythingNodes/CurveNodes

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

Commit Details:

Full Hash: d19176765db8dc6dd644adaa7a13d47f4d294d6d
Parent Commit: 01a0699
Committed By: Stefan Werner
Lines Changed: +2872, -7

8 Added Paths:

/source/blender/blenkernel/BKE_spline.hh (+478, -0) (View)
/source/blender/blenkernel/intern/curve_eval.cc (+184, -0) (View)
/source/blender/blenkernel/intern/geometry_component_curve.cc (+299, -0) (View)
/source/blender/blenkernel/intern/spline_base.cc (+252, -0) (View)
/source/blender/blenkernel/intern/spline_bezier.cc (+478, -0) (View)
/source/blender/blenkernel/intern/spline_nurbs.cc (+417, -0) (View)
/source/blender/blenkernel/intern/spline_poly.cc (+105, -0) (View)
/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc (+312, -0) (View)

39 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+3, -0) (Diff)
/source/blender/blenkernel/BKE_attribute_math.hh (+2, -0) (Diff)
/source/blender/blenkernel/BKE_geometry_set.h (+1, -0) (Diff)
/source/blender/blenkernel/BKE_geometry_set.hh (+42, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+7, -0) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+0, -2) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.cc (+5, -3) (Diff)
/source/blender/blenkernel/intern/geometry_set.cc (+45, -0) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+43, -0) (Diff)
/source/blender/blenkernel/intern/node.cc (+1, -0) (Diff)
/source/blender/blenlib/BLI_float3.hh (+7, -0) (Diff)
/source/blender/blenlib/BLI_float4x4.hh (+44, -0) (Diff)
/source/blender/makesrna/intern/rna_attribute.c (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_space.c (+14, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+1, -1) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_align_rotation_to_vector.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_clamp.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_color_ramp.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_combine_xyz.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_compare.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_convert.cc (+8, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_fill.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_map_range.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_math.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_mix.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_proximity.cc (+4, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_randomize.cc (+8, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_remove.cc (+4, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_sample_texture.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_separate_xyz.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_vector_math.cc (+3, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_join_geometry.cc (+36, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc (+4, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_point_instance.cc (+5, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_transform.cc (+21, -0) (Diff)
/source/blender/nodes/NOD_geometry.h (+1, -0) (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