Itoo Software Forum

RailClone => RailClone Pro (*) => Topic started by: MT4250 on October 26, 2017, 10:45:38 AM

Title: 2D array decrease gradient density from clippingarea border
Post by: MT4250 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?
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: Rokas 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.
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: MT4250 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.
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: Rokas 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.
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: Rokas on October 26, 2017, 03:59:54 PM
Something like this:
(https://i.imgur.com/wyHFRj5.gif)
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 ;)
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: MT4250 on October 27, 2017, 08:09:44 AM
Awesome, thanks! It´s a bit difficult to modify it so it will work with hexagons :)
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: Rokas on October 27, 2017, 09:26:17 AM
Please attach Your start style, I will try to help
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: MT4250 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
Title: Re: 2D array decrease gradient density from clippingarea border
Post by: Rokas on October 28, 2017, 02:41:01 PM
There is a good topic about hexa-parallellograms here (https://forum.itoosoft.com/railclone-pro-(*)/composed-hexagon-and-transform-issues/).
So I made 3 variants. Hope You find them useful:
1st with you HexagonTile:
(https://i.imgur.com/rwAJPzr.png)

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:
(https://i.imgur.com/fwhkeGu.gif)

And last but not least:
(https://i.imgur.com/D7F2Y9P.gif)

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