Itoo Software Forum

Author Topic: Multi color pavement  (Read 1247 times)

MarcoG

  • Newbie
  • *
  • Posts: 25
Multi color pavement
« on: March 22, 2015, 10:38:25 AM »
Hi,

I need to build a multi color PVC floor organized in something like this way.
first row
col1-col2-col1-col2 ...etc...
second row
col2-col3-col2-col3 ... etc..
thrid row
col3-col4-col3-col5 ... etc..
... etc... to color9

Is it possibile to automate in a A2s? I want to try with Railclone instead of using textures.

Thanks in advance
M.

« Last Edit: March 22, 2015, 11:27:44 AM by MarcoG »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: Multi color pavement
« Reply #1 on: March 22, 2015, 02:42:43 PM »
Hi Marco,

This can be done using the Material and Sequence operator as illustrated in this node tree.



The important thing here is to set the material Operator to Sequence instead of Random, and set the Sequence operator to increment on Y.
I've attached a sample file for you to take a look at, please let me know if you have further questions.

Many thanks,

Paul
Paul Roberts
iToo Software

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 844
    • iToo
Re: Multi color pavement
« Reply #2 on: March 22, 2015, 03:06:32 PM »
I wonder, why my method (right side) do not work correctly on first colors.
If i do random- it works correctly.



Rokas
iToo Software

MarcoG

  • Newbie
  • *
  • Posts: 25
Re: Multi color pavement
« Reply #3 on: March 22, 2015, 03:14:20 PM »
Many Thanks to you Paul, that's wonderful!!

I will try right now!!

Regards!
Marco

MarcoG

  • Newbie
  • *
  • Posts: 25
Re: Multi color pavement
« Reply #4 on: March 22, 2015, 03:30:38 PM »
Of course (thanks to you) it works like a charm.... i love Railclone (and not only for this) !

Many thanks!!
Marco


Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: Multi color pavement
« Reply #5 on: March 22, 2015, 03:39:12 PM »
Hi Marco,

No problem at all, glad we could help out.

Cheers,

Paul
Paul Roberts
iToo Software

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: Multi color pavement
« Reply #6 on: March 22, 2015, 03:40:53 PM »
Hi Rokas,

I must admit in this case I was trying to avoid using expressions so I didn't try it that way, but it seems there is something amiss. I'll take a look, there doesn't appear to be anything wrong with your style so it may be a bug.

Thanks.

Paul.
Paul Roberts
iToo Software

MarcoG

  • Newbie
  • *
  • Posts: 25
Re: Multi color pavement
« Reply #7 on: March 22, 2015, 03:51:23 PM »
Seems that value "from" must be lower in all cases than "to".

I wanted to try to invert two values in a row... mixing "2 and 1" (in this order) instead of "1-2" ... but seems doesn't work.

Am i correct?

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: Multi color pavement
« Reply #8 on: March 22, 2015, 03:59:31 PM »
Hi Marco,

Unfortunately you are correct, the Material operator expects the To value to be greater than the From value.

Thanks,

Paul
Paul Roberts
iToo Software

MarcoG

  • Newbie
  • *
  • Posts: 25
Re: Multi color pavement
« Reply #9 on: March 22, 2015, 04:02:19 PM »
Of course.  :)

M.

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: Multi color pavement
« Reply #10 on: March 22, 2015, 04:09:16 PM »
Hi Marco,

Another way to get this effect is to use the Material Operators to just change the tile to a single value (From 1 - 9) and then use sequence operators to create the patterns. You easily change the order of the nodes attached to the sequence operators to get the result you're after.


Thanks,

Paul
Paul Roberts
iToo Software

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 844
    • iToo
Re: Multi color pavement
« Reply #11 on: March 22, 2015, 04:40:25 PM »
Hi Marco,

Unfortunately you are correct, the Material operator expects the To value to be greater than the From value.

Thanks,

Paul
Are You discussing my RC style error ? could You explain more ?
Rokas
iToo Software

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 1593
Re: Multi color pavement
« Reply #12 on: March 22, 2015, 04:47:24 PM »
Hi Rokas,

Sorry, this was a separate issue. The From value must always be lower or equal to the To value in the Material operator. This shouldn't affect your style though, which appears to be a separate issue. I will look into it.

Thanks,

Paul
Paul Roberts
iToo Software

MarcoG

  • Newbie
  • *
  • Posts: 25
Re: Multi color pavement
« Reply #13 on: March 22, 2015, 04:58:00 PM »
Oh...

Great!

I was trying nserting more materials in multimaterial slots ... but that one you posted above sounds absolutely better.
Thanks again Paul!!
M.