Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: MarcoG on March 22, 2015, 10:38:25 AM

Title: Multi color pavement
Post by: MarcoG 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.

Title: Re: Multi color pavement
Post by: Paul Roberts 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.

(http://lonelymonk.com/forum_images/ec5193a0864a4a04bc59893979b6c9e3.jpg)

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
Title: Re: Multi color pavement
Post by: Rokas 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.

(http://i.imgur.com/kI5aLnp.jpg)

Title: Re: Multi color pavement
Post by: MarcoG on March 22, 2015, 03:14:20 PM
Many Thanks to you Paul, that's wonderful!!

I will try right now!!

Regards!
Marco
Title: Re: Multi color pavement
Post by: MarcoG 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

Title: Re: Multi color pavement
Post by: Paul Roberts on March 22, 2015, 03:39:12 PM
Hi Marco,

No problem at all, glad we could help out.

Cheers,

Paul
Title: Re: Multi color pavement
Post by: Paul Roberts 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.
Title: Re: Multi color pavement
Post by: MarcoG 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?
Title: Re: Multi color pavement
Post by: Paul Roberts 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
Title: Re: Multi color pavement
Post by: MarcoG on March 22, 2015, 04:02:19 PM
Of course.  :)

M.
Title: Re: Multi color pavement
Post by: Paul Roberts 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.

(http://lonelymonk.com/forum_images/16a3b4c379874e3d9da30bed43188153.jpg)
Thanks,

Paul
Title: Re: Multi color pavement
Post by: Rokas 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 ?
Title: Re: Multi color pavement
Post by: Paul Roberts 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
Title: Re: Multi color pavement
Post by: MarcoG 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.