Itoo Software Forum

Author Topic: Random rotation and mirroring  (Read 1893 times)

ML2660

  • Newbie
  • *
  • Posts: 40
Random rotation and mirroring
« on: November 26, 2015, 06:58:07 PM »
Hi, probably an easy question ,but couldn't find the solution anywhere.

I want to create a hedge preset along a spline.
To minimize the visible repetitions, I'd like the segments to rotate/flip and mirror,but still follow the curve of the spline.

How can this be done?

Thanks and best regards.
Ml


iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4394
    • iToo Software
Re: Random rotation and mirroring
« Reply #1 on: November 28, 2015, 10:26:22 AM »
Hi, yes it can be done using a mirror operator. In this way:

1) Add a Mirror operator between the Segment and the Generator.
2) Export it's On/Off parameter (right click->Export parameters).
3) Connect it to a Random numeric node which generates 0/1 values.
4) In the Random node set Generate on->Segment, so the random value is generated for each segment.

I've attached a sample scene. I hope that helps.

Carlos Quintero
iToo Software

ML2660

  • Newbie
  • *
  • Posts: 40
Re: Random rotation and mirroring
« Reply #2 on: November 30, 2015, 10:01:02 PM »
Hi Carlos,

Thanks very much! Very helpful.

One more question though:

Is is also possible to mirror the line(arrow)segment around its own  axis?
Now it's mirroring the end and beginning of the arrow, but it would be nice if you also can mirror from left to right.
In other words, Is it possible to add two mirror operators on the same segment?

Thx again

iToo

  • Administrator
  • Hero Member
  • *****
  • Posts: 4394
    • iToo Software
Re: Random rotation and mirroring
« Reply #3 on: December 01, 2015, 09:06:18 AM »
Hi. Yes, it's possible to add multiple Mirror operators (or other, as Transform). There is not limit with that.

Also Mirror node allows to define the mirroring axis (X,Y or Z). You can change it in the node properties (select it->left panel).

Carlos Quintero
iToo Software