Itoo Software Forum

Author Topic: Variety of segment colors when creating a custom pattern and using extract tiles  (Read 469 times)

TV2634

  • Newbie
  • *
  • Posts: 5
Hello everyone! I create a floor with a custom pattern. I create the pattern using several transform node, then I connect it to the extract tiles macros node. The problem is that extract tiles colors the entire assembly element, and I need each segment to be a different color. Here is an example in the picture in attachment, on the left there is just a masonry with a brick, each brick is a different color. There is already another pattern on the right, and I can't get all the segments of the bricks to be random color.

In this implementation of the style (right floor on the picture), I cheated a little to simplify, the segment with the brick is double, but even in this case, the double elements are the same color when using extract tiles.

I attached the max file 2022 version, I will be grateful for the help
« Last Edit: May 11, 2023, 01:25:58 PM by TV2634 »

Paul Roberts

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2993
Hi,

Thanks for the question. This is happening because when a number of objects are wired to a Compose nodes, they are considered from that point as a single segment. This means all of the bricks within a composed group will take the same randomisation settings. To further complicate things, the segment used in the image on the right already has two bricks, so RailClone has no way to randomise their UVs separately. I propose the following changes

- Used the Extract Tiles macro before wiring the segments to the compose operators, and use multiple nodes, one for each time the segment is used, so that they are randomised independently.

- Change one of the bricks in the source geometry to use a different material ID. Then create a multi-sub object material that uses the same textures, but offset so that when the UVs are randomised the two bricks don't take the same part of the map.

A sample file is attached.

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

All the best,
Paul
Paul Roberts
iToo Software

TV2634

  • Newbie
  • *
  • Posts: 5
Thank you very much! The solution seems obvious, but when you already know the answer, I couldn't guess. You have helped me a lot!