Hi, I am trying to create a wallpaper with random hexagonal sizes and colours. I have this now with Geometry nodes. How do I create a pattern without these gaps and give different colours to each? Thanks.
See how the smallest ones are actually grey? You’re using the same seed for both random number genrators, so you’re going to get corresponding results. You’re also using a single value from 0 to 2.8 as a colour, a datum which expects a value from 0 to 1, so the average value is 1.4 which is very white.
Experiment. Make theories and suss out why they do or do not work. Look up other colour tandomization techniques and combine them.
Start with a Mesh_Line, and extrude the edges, zig-zagging left/right every other row. With simple trigonometry, you can get these points to describe a grid of equilateral triangles. The small spheres in the above image are the points of the triangular grid… included just to see what’s happening.
The zig-zag extrude leaves us with rhomboidal faces, so the Triangulate node is needed to chop these into the desired equilateral triangles. Taking the Dual_Mesh of this gives us a perfect Hexagonal grid mesh. Note that we lose incomplete hexagons all the way around, so the requested X * Y Counts are both reduced by 2.
In the appended .blend file (gn.31.hexagonalGrid.blend), the object to look at is cleverly named “HexagonalGrid”. It has an associated geomNodes group also named “HexagonalGrid”. You can turn off the spheres (dots) by setting “Point Radius” to zero (0).