Itoo Software Forum

Author Topic: Path distibution effects for hedges  (Read 795 times)

Mattias

  • Newbie
  • *
  • Posts: 12
Path distibution effects for hedges
« 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

Rokas

  • Hero Member
  • *****
  • Posts: 3324
Re: Path distibution effects for hedges
« Reply #1 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.


Hope this helps
Rokas

Mattias

  • Newbie
  • *
  • Posts: 12
Re: Path distibution effects for hedges
« Reply #2 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.





« Last Edit: May 03, 2021, 10:07:17 AM by Mattias »