Itoo Software Forum

Author Topic: Pattern?  (Read 6385 times)

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Pattern?
« on: April 06, 2018, 05:36:52 PM »
I assume I can say hi Rokas  ;)

I cant figure out how to setup the pattern including randomize mapping on blocks..

I started with blocks 20cmx20cm and 20cm*30cm and I can see the pattern (cross of 20x30 with 20x20 on the corners) but newbie still has no idea how to setup this simple generator #$@$#@.

Best Regards
Dragan


Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Pattern?
« Reply #1 on: April 10, 2018, 10:29:41 AM »
OK, lets do this (and any other) pattern Style in RailClone. Anything Goes!
If You can spot a pattern You can do a RailClone style.
Easy as that.

Let's Start.
1. Identify Geometry pattern.


2. Model pieces as separate objects:


3. Center pivots so they are in the same world location ( [0,0,0] is always nice )


4. Create RailClone object. And edit some nodes:
Add Array 2S generator. Sets it size a like our pieces:


5. Add one Segment (any object) and set its Alignment options X and Y to Pivot:


6. Clone Multiple, select all the pieces. Delete first as we have duplicate in the list. And add them all to Compose Operator:


7. Connect Compose node to "LB Corner":


8. Important step: change Compose Node setting to "Grouped":


9. Add material and uv randomizations as needed.

Thats my final style for 1st RailClone object.

10. Lets Create 2nd RailClone Object:
Lets create Array 2S Generator.
Add/attach Clipping area node with assigned spline
Add/attach Segment with assigned first RailClone object.
Make sure to select "Extend X/Y Size to Area" checkbox:


11. Adjust padding values.
This pattern is "easy" as it tiles verticaly and horizontaly without any translation. Lets add Padding values for Right: -5 and Bottom: -10



12. This pattern is done.
However. Sometimes pattens reapeat itself translating a little in both X and Y axis. Like this:


In this post, I included simple Macro to help adjust such patterns:


Note:
In some cases using this macro is really not recommended as more efficient method could be found:


Final style render:


I did not concentrate on mapping and texturing as this is pretty extensive already.
But You can see my scene attached, and if You have questions, I could make post like this about mapping.

Attached scene and macro for closer examination.
Hope that helps.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Pattern?
« Reply #2 on: April 10, 2018, 10:55:44 AM »
 :o Rokas, THANK YOU  for so quick reply and thank you for WHOLE TUTORIAL on this....
I have NO question... :D Everything is so clear.
Finally got it purpose of Compose operator and how to use it!!!

Great Support!

Best Regards
Dragan





« Last Edit: April 10, 2018, 11:35:15 AM by Dragan »

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Pattern?
« Reply #3 on: April 10, 2018, 11:01:08 AM »
 8)
Just one:
"7. Connect Compose node to "LB Corner":"

why LB Corner?


Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Pattern?
« Reply #4 on: April 10, 2018, 11:48:04 AM »
You could use any corner.
We need corner so it is not repeated.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Pattern?
« Reply #5 on: April 10, 2018, 12:00:23 PM »
Got it...
Tnx again

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Pattern?
« Reply #6 on: April 11, 2018, 12:59:52 PM »
Hi, one more question:

I need some variations in segments (translation/rotation/size) and will make this random variation via transform tab or via Transform operator. If I nest "RC peace" generator into main RC, are those variations will be uniform for each  "RC peace" or I will get full randomization on each "RC  peace" segment?

I assume I can do everything in a single RC generator by adding Transform operator after Compose and set the Size (for Compose patch 45x50, uncheck scale segment) and Padding and connect everything to Default. Of course, Clipping area is active and set to Extend...

Best Regards
Dragan

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Pattern?
« Reply #7 on: April 11, 2018, 02:09:51 PM »
There are many ways to transform segments in RC.
In this particular method of creating patterns most of them lead to intersecting geometry.
I would "Randomize" some variants for every pattern piece, and randomize from those samples.


Scene attached.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Pattern?
« Reply #8 on: April 11, 2018, 02:46:45 PM »
I manage to do everything in one Generator. (Transform Operator after Compose set to 45x50, Padding -5/10 then to Default, work like a charm).

What would be better way to do, nested RC or everything in one Generator? Is there any difference in memory/speed/display...?




Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Pattern?
« Reply #9 on: April 11, 2018, 03:25:18 PM »
Could You attach me Your style?
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Pattern?
« Reply #10 on: April 11, 2018, 03:33:02 PM »
Without variations, just in single Generator...

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Pattern?
« Reply #11 on: April 11, 2018, 05:07:51 PM »
I would like to ask with randomizations.
Rokas

Dragan

  • Hero Member
  • *****
  • Posts: 1419
Re: Pattern?
« Reply #12 on: April 11, 2018, 05:32:31 PM »
If you targeting for overlapping - I could not avoid this. I think some combination of linked size+translation would do the job.
And It will be nice to have aspect ratio option on random scale to lock for eg. just length&width.
« Last Edit: April 11, 2018, 05:36:09 PM by Dragan »

UB8512

  • Newbie
  • *
  • Posts: 34
Re: Pattern?
« Reply #13 on: April 14, 2018, 10:05:48 AM »
Hi,

great tip Rokas. I have two questions:
1. I am using pattern consisting of 49 pieces. When I have larger area like on picture, parsing scene before render tooks 41 seconds. Can be this speeded up or it is on maximum speed?
2. I tried to use railclone color map to set probability of each colors, but it seems to be not working with compose RC element at all, or I am doing something wrong. In material I am using 5 MIX map, so can not use multitexture and also I am working with corona.
I am assuming, that with randomising materials ID we can not set probability of each material ID(in material or directly in RC), or?

Thanks

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Pattern?
« Reply #14 on: April 16, 2018, 03:05:31 PM »
Can You please send us Your style, so the help would be target to Your exact situation?
Rokas