5

I’m trying to make some procedural shapes with geometry nodes in Blender 3.0, I’ve started with a cube node with some subdivisions that I’ve distorted with some Voronoi and noise textures at different level of details. Some of these textures are set as 4D vectors so I can manipulate the W value to Seed out different shapes.

Now I want to randomize the seed value of the textures so that it gives me a different shape everytime I duplicate or instance the object. I thought I could add or multiply or whatever the ID Integer of the mesh to the seed so that each new mesh or instance of a mesh gets shuffled with the seed but so far I couldn't find any solution.

Any ideas?

Node Tree

Duarte Farrajota Ramos
  • 59,425
  • 39
  • 130
  • 187

2 Answers2

8

You can get a semi-random number by multiplying the relative location by a large number. This is my node setup :

enter image description here

Benus
  • 3,323
  • 6
  • 21
  • Yes!!! I tried to use the Object Info Node before, hoping to find a Random output like in the shader editor's Object Info node, I did not thought at all that I could use the unique location of every instance as a factor to change the seeds. It works! Something tells me that is a workaround though, that I might find some issues down the line.... Anyway the solution fits the problem, thank you!! – Jacopo Moretti Jan 19 '22 at 09:48
1

I was thinking in the wrong direction, instead of displacing a single object and then scatter it everywhere (which gave me the same displaced object in any distributed point down the line), the best way to get what I wanted was to first instance an object (a cube with some subdivisions and random scale) on points, and then after realizing instances, displace each object by its normals, so that I could have full control over the displacement of the scattered objects.

Although Benus solution works perfectly in different applications, so I'll keep it in mind, thank you!

  • can anyone please share these setups? as blend files so i can study them in a reverse order as i really need to learn this.. thanks ALOT in advance – harrycg Jun 10 '23 at 06:30