Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: Mattias on May 01, 2021, 03:40:36 PM

Title: Path distibution effects for hedges
Post by: Mattias on May 01, 2021, 03:40:36 PM
Hi,

As I`m using fstorm these days, I can`t use railclone when having high poly segments like hedge elements (instancing is not supported). But I think it would be possible to do almost the same thing with a forest effect.
Usually I have a start segment, a couple of random default segments (middle) and an end segment.

By using this expression fpItem.geomID = if (fpItem.distPathPos == 0, 0,1); i can already define the start segment, but i don`t know how to proceed to do the random mid segments and end segment.


Kind regards,

Mattias
Title: Re: Path distibution effects for hedges
Post by: Rokas on May 03, 2021, 07:58:06 AM
Hi, Mattias.
Due to the nature how FP places the objects, You can't define end segment strictly as distPathPos==1. But we can use approximate location distPathPos >0.95.
I created this as exported value and You can adjust it for Your needs.
(https://i.imgur.com/uJvGr1l.png)

Hope this helps
Title: Re: Path distibution effects for hedges
Post by: Mattias on May 03, 2021, 10:02:15 AM
Thanks Rokas,

I thought there was maybe a way to use a mix of spacing (mid section) and vertex positions (start and end) and just exclude the vertices that aren't at the start or end.
Anyway, I tried out your solution and already added the randomization for the mid segments. I attached the edited file below. You just have to define the amount of mid segments.

When i have some spare time, I think I`m going add in mirror variation and stepped rotation (180) too.

(https://i.imgur.com/mEZBxVm.jpg)