Itoo Software Forum

Author Topic: 2D array decrease gradient density from clippingarea border  (Read 5258 times)

MT4250

  • Newbie
  • *
  • Posts: 6
2D array decrease gradient density from clippingarea border
« on: October 26, 2017, 10:45:38 AM »
Is it possible to decrease density from clippingarea border with a "gradient" in a 2D array so its superdense inside the clipping area, but on the outside it fades away random in let say 5m?

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: 2D array decrease gradient density from clippingarea border
« Reply #1 on: October 26, 2017, 11:16:22 AM »
What do You mean by density?
Density is a feature of forestpack, there You can adjust density of scattering based on border.
Rokas

MT4250

  • Newbie
  • *
  • Posts: 6
Re: 2D array decrease gradient density from clippingarea border
« Reply #2 on: October 26, 2017, 01:04:27 PM »
I mean that I have a 2D array with some geometric pattern, at the edge of the border I want the amount of the objects to slowly fade off random. So let say that I have 50 objects in a row, next row could be like 37, next row 22, next 17, 12,8, 4, 1 etc. I know it couldbe done in forestpack but the way the objects is set up it would be much better to do it in RC if possible.

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: 2D array decrease gradient density from clippingarea border
« Reply #3 on: October 26, 2017, 01:55:46 PM »
Oh I get it.. it can be done, when I have time I will post my solution.
Rokas

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: 2D array decrease gradient density from clippingarea border
« Reply #4 on: October 26, 2017, 03:59:54 PM »
Something like this:

Too bad it works not by distance to edge but in X and Y directions. If You put circle to spline, unexpected results will happen ;)
Rokas

MT4250

  • Newbie
  • *
  • Posts: 6
Re: 2D array decrease gradient density from clippingarea border
« Reply #5 on: October 27, 2017, 08:09:44 AM »
Awesome, thanks! It´s a bit difficult to modify it so it will work with hexagons :)
« Last Edit: October 27, 2017, 09:02:28 AM by MT4250 »

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: 2D array decrease gradient density from clippingarea border
« Reply #6 on: October 27, 2017, 09:26:17 AM »
Please attach Your start style, I will try to help
Rokas

MT4250

  • Newbie
  • *
  • Posts: 6
Re: 2D array decrease gradient density from clippingarea border
« Reply #7 on: October 27, 2017, 12:00:08 PM »
Best would be to have all parallellograms as a separate segment but couldnt get it to work so I kept working with the hexagon. See attached file

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: 2D array decrease gradient density from clippingarea border
« Reply #8 on: October 28, 2017, 02:41:01 PM »
There is a good topic about hexa-parallellograms here.
So I made 3 variants. Hope You find them useful:
1st with you HexagonTile:


And 2nd, 3rd with styles from mentioned thread where more info can be found:
These are little bit more complex styles, but have more control:


And last but not least:


All 3 styles can be found in attached max file. Hope that helps. This was interesting style to do.
Rokas