Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <jacques@blender.org>2021-01-13 14:34:48 +0300
committerJacques Lucke <jacques@blender.org>2021-01-13 14:44:17 +0300
commitd985751324a81d0227d163981cc561968a88ff68 (patch)
treea9ddbf09ebc359a3aa927c9992a5f4571d3ab890 /source/blender/makesrna
parented1042ee060caf5132822b947cac768f90b5ba12 (diff)
Geometry Nodes: improve Point Distribute node
This greatly simplifies the Point Distribute node. For a poisson disk distribution, it now uses a simpler dart throwing variant. This results in a slightly lower quality poisson disk distribution, but it still fulfills our requirements: have a max density, minimum distance input and stability while painting the density attribute. This new implementation has a number of benefits over the old one: * Much less and more readable code. * Easier to extend with other distribution algorithms. * Easier to transfer more attributes to the generated points later on. * More predictable output when changing the max density and min distance. * Works in 3d, so no projection on the xy plane is necessary. This is related to T84640. Differential Revision: https://developer.blender.org/D10104
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_nodetree.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c
index cf44d8a84be..1f6359c2ed4 100644
--- a/source/blender/makesrna/intern/rna_nodetree.c
+++ b/source/blender/makesrna/intern/rna_nodetree.c
@@ -436,7 +436,8 @@ static const EnumPropertyItem rna_node_geometry_point_distribute_method_items[]
"POISSON",
0,
"Poisson Disk",
- "Project points on the surface evenly with a Poisson disk distribution"},
+ "Distribute the points randomly on the surface while taking a minimum distance between "
+ "points into account"},
{0, NULL, 0, NULL, NULL},
};
@@ -6291,7 +6292,8 @@ static void rna_def_cmp_output_file_slot_file(BlenderRNA *brna)
prop = RNA_def_property(srna, "save_as_render", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "save_as_render", 1);
- RNA_def_property_ui_text(prop, "Save as Render", "Apply render part of display transform when saving byte image");
+ RNA_def_property_ui_text(
+ prop, "Save as Render", "Apply render part of display transform when saving byte image");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, NULL);
prop = RNA_def_property(srna, "format", PROP_POINTER, PROP_NONE);