7
$\begingroup$

I'm trying to recreate the donut sprinkles tutorial (by Blender Guru) but instead of using a particle system for sprinkles on the top of a donut, I want to use the new geometry nodes system.

When using a particle system you can use a collection as the objects and then the "Use Count" option allows you give different objects in the collection different count. This means you can make certain objects in a collection appear more often than other objects.

When using a Point Instance Geometry node you can choose "collection" but there is no option to "Use Count". Is there some chain of nodes you could use to accomplish the same thing?

$\endgroup$
1

4 Answers 4

3
$\begingroup$

The easiest way I found was to add separate "point distribute" and "point instance" nodes for the spheres and then you can independently control the density of the spheres and sprinkles. You then join the geometries.node diagram

The two nodes controlling the spheres are circled in red.

$\endgroup$
1
  • 1
    $\begingroup$ This only works if you have very few objects to deal with. With a large quantity however, this wont be a good solution. For this specific task, It's best to stick with the particle system at the moment. $\endgroup$ Jun 27, 2021 at 13:53
2
$\begingroup$

I asked myself the same. I found a workaround that gives a bit more control. I splitted the point instance in two - one with the object which is more important and another with a collection of variation. With the Attribute Randomize I can give more importance to one of the separated instances: screenshot of nodes

$\endgroup$
2
$\begingroup$

I cobbled together a quick and simple method for my project.

Set two value nodes that correspond with the amount of items in your collection, starting at 0. In this example there are 5 items total. Run them through a mix RGB node, then control the factor with a noise texture + colour ramp.

If you tweak the colour ramp a bunch it could be a quick and dirty way to choose which items in the collection have the most importance. Hope that's useful to someone!

enter image description here

$\endgroup$
0
$\begingroup$

Look at this this: https://blenderartists.org/t/geometry-nodes-creating-a-random-object-picker-with-rarity/1337111

This is the best for current state for fields

More clean result for 4 indecies look like: enter image description here

So random value group is just Random value node enter image description here

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .