Skip to main content
Fixed Material handling per comment.
Source Link
Marty Fouts
  • 33.5k
  • 10
  • 37
  • 80

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently if you added these nodes:

Complete tree of nodes, including material handlingComplete Tree including materials

Thanks to Markus von Broady for the comment correcting my material handling.

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently if you added these nodes:

Complete tree of nodes, including material handling

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently if you added these nodes:

Complete Tree including materials

Thanks to Markus von Broady for the comment correcting my material handling.

added 82 characters in body
Source Link
Marty Fouts
  • 33.5k
  • 10
  • 37
  • 80

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently, but I haven't if you added thethese nodes for setting materials.:

Complete tree of nodes, including material handling

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently, but I haven't added the nodes for setting materials.

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently if you added these nodes:

Complete tree of nodes, including material handling

added 287 characters in body
Source Link
Marty Fouts
  • 33.5k
  • 10
  • 37
  • 80

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently, but I haven't added the nodes for setting materials.

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

I think this one might be the simplest:

Node group

both in terms of node count, and in ease of explanation:

  1. Create a hex grid.
  2. Populate it with Cylinders with Vertices set to 6 to make them hex shaped.
  3. Assign a random value to the Cylinder Scale.

You need a combine XYZ node that only randomizes X and Y if you want the cylinders all on the same base height.

Result

I think that joining two grids that are offset is a bit of a cheat, but it does give you a good hex pattern; and all of this in just six nodes. (7 if you want the cylinder bases at the same height.)

To answer a question in the comments, here's how to parameterize the grid size. Note that this version has the change to support the cylinders all sharing a base height as well.

Node group that parameterizes the Grid spacing

Also note that this group would support the ability to color the sides and tops differently, but I haven't added the nodes for setting materials.

Source Link
Marty Fouts
  • 33.5k
  • 10
  • 37
  • 80
Loading