Blender Git Loki

Git Commits -> Revision be16794

Revision be16794 by Erik Abrahamsson (master)
September 24, 2021, 17:41 (GMT)
Geometry Nodes: String to Curves Node

This commit adds a node that generates a text paragraph as curve
instances. The inputs on the node control the overall shape of the
paragraph, and other nodes can be used to move the individual instances
afterwards. To output more than one line, the "Special Characters" node
can be used.

The node outputs instances instead of real geometry so that it doesn't
have to duplicate work for every character afterwards. This is much
more efficient, because all of the curve evaluation and nodes like fill
curve don't have to repeat the same calculation for every instance of
the same character.

In the future, the instances component will support attributes, and the
node can output attribute fields like "Word Index" and "Line Index".

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

Commit Details:

Full Hash: be16794ba17246eb035bdda42bb5e69d6bf5fa40
Parent Commit: 5c0017e
Committed By: Hans Goudey
Lines Changed: +519, -10

1 Added Path:

/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc (+307, -0) (View)

15 Modified Paths:

/release/scripts/startup/nodeitems_builtins.py (+1, -0) (Diff)
/source/blender/blenkernel/BKE_font.h (+9, -0) (Diff)
/source/blender/blenkernel/BKE_node.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/font.c (+10, -10) (Diff)
/source/blender/blenkernel/intern/node.cc (+1, -0) (Diff)
/source/blender/blenlib/BLI_float4x4.hh (+7, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+15, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.h (+2, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+15, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.h (+2, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+32, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+114, -0) (Diff)
/source/blender/nodes/CMakeLists.txt (+1, -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