Itoo Software Forum

Author Topic: Flooring with different adjacent mat ids  (Read 5355 times)

BI1654

  • Newbie
  • *
  • Posts: 41
Flooring with different adjacent mat ids
« on: April 03, 2014, 02:39:18 PM »
Basically trying to recreate the attached image.

The geometry is no problem, I just tweaked the herringbone preset. But is it possible to randomise the material IDs (in this case 1 - 5) and make sure that no adjacent planks have the same material?
As it stands at the moment, I have it totally random, which isnt quite right. Using sequence in the material operator just gives me stripes.

Or maybe theres a better way to do this?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2991
Re: Flooring with different adjacent mat ids
« Reply #1 on: April 03, 2014, 04:35:34 PM »
Hi,

When creating randomised patterns it can often be tricky to prevent the same ID from appearing adjacent to one another. One approach is to limit the range of IDs that can be selected based in their position in a row and column, something like this based on 6 material IDs:

ID 1 - 2|ID 5 - 6
ID 3 - 4|ID 1 - 2
ID 5 - 6|ID 3 - 4

Each of these columns represents a sequences operator set to Increment on Y.

Another approach is to pre-make acceptable combinations of planks before adding them to RailClone and randomising between them.

I've attached a screen grab and file to help illustrate the former.

Hope that helps,

Kind regards,

Paul

Paul Roberts
iToo Software

BI1654

  • Newbie
  • *
  • Posts: 41
Re: Flooring with different adjacent mat ids
« Reply #2 on: April 03, 2014, 06:34:31 PM »
Cool thanks, very helpful!