Itoo Software Forum

Author Topic: Staggered wall with random materials  (Read 294 times)

MF1030

  • Newbie
  • *
  • Posts: 5
Staggered wall with random materials
« on: October 25, 2017, 06:36:57 PM »
Hello

I would like to create a staggered brick/stone/panel wall with random materials and railclone.
The base object is the same all the time. I have a node chart that works almost perfectly.
I pick the base object, change randomly the material, then shift and compose and use this as default

It works perfectly but I have issues on the left or the right depending on the sign of the shift

I tried to add the shifted object to the right input of the array2s but I have to adjust manually the shift for each spline

Please find a screenshot and the max file attached

Does someone have a suggestion ?

Thank you very much

Brice

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1492
Re: Staggered wall with random materials
« Reply #1 on: October 25, 2017, 08:21:49 PM »
Hi,

Thanks for the question.

Please take a look at the attached files which uses a slightly different technique. In the Left input I have a tile that uses an incremental negative padding value to offset each row. This was created using an expression, which has the benefit of allowing you to change the number of offset steps should you wish to. Padding also does not suffer from the same problem as translating each row, so the right side is correctly sliced.


I hope that helps, please let me know if you have any further questions.

Many Thanks,

Paul
Paul Roberts
iToo Software

MF1030

  • Newbie
  • *
  • Posts: 5
Re: Staggered wall with random materials
« Reply #2 on: October 25, 2017, 09:16:39 PM »
Hi Paul,

I think we are very close, if I understand your expression well, the shifts will be (for 5 shifts for example) 0, -20%, -40%, -60%, -80%.

Can you help me modifying the expression if I want shifts like 0, -10%, -30%, -36.5%, -72% ie, arbitrary shifts

Ie, I would like to chose the input for the shift depending on the mod(segmentYcounter,numberofshifts)

Thank you

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1492
Re: Staggered wall with random materials
« Reply #3 on: October 26, 2017, 07:04:23 PM »
Hi,

If you want arbitrary values then it's probably easier to just use a Sequence operator set to Increment on Y. You can then wire in transform operators with the required negative padding values to get whatever effects you need! Check out the attached file for a demo.

I hope that helps, please let me know if you have any further questions.

Many Thanks,

Paul
Paul Roberts
iToo Software

MF1030

  • Newbie
  • *
  • Posts: 5
Re: Staggered wall with random materials
« Reply #4 on: October 26, 2017, 08:37:40 PM »
This is working perfectly,

Thank you !