Itoo Software Forum

Forest Pack => Forest Pro (*) => Topic started by: ben_img on September 24, 2020, 08:32:43 PM

Title: ForestPro : Specific number of objects
Post by: ben_img on September 24, 2020, 08:32:43 PM
Hi
(it's me again  :-X )

Is there a way to distribute a precise number of items ?
Playing with display max items isn't quite accurate

cheers
ben
Title: Re: ForestPro : Specific number of objects
Post by: Rokas on September 25, 2020, 08:11:56 AM
Hi

For exact number You can use Reference (https://docs.itoosoft.com/forestpack/forest-plugin/distribution/reference-mode) or Particle Flow (https://docs.itoosoft.com/forestpack/forest-plugin/distribution/particle-flow-mode) Distribution method. Image  (https://docs.itoosoft.com/forestpack/forest-plugin/distribution/image-mode)wont do in such cases.

(https://i.imgur.com/1mjcb4Q.png)

Hope this helps
Title: Re: ForestPro : Specific number of objects
Post by: ben_img on September 25, 2020, 02:19:10 PM
Cheers for the reply and the sample scene.

Reference needs to have reference objects as target, so in other words it's a search and replace kind of thing.
And the pFlow loses all the area/spline options?

No solution for a regular forestPro with a given number then ?
Title: Re: ForestPro : Specific number of objects
Post by: Rokas on September 25, 2020, 04:13:19 PM
Would it work for You if there was a script to delete excess items?
You would generate few too many, go to custom edit, and run the script to delete few items that are over Your specified limit?
Title: Re: ForestPro : Specific number of objects
Post by: ben_img on September 26, 2020, 11:05:07 AM
a script sure could help :)

it's for game engine purposes, there's a limit each object can have... at the moment i'm playing with density/collision radius to reach the limit on each forest
Title: Re: ForestPro : Specific number of objects
Post by: Rokas on September 27, 2020, 10:41:44 AM
So I can test performance,
How many items You would be generating, and then culling them to how many?
Title: Re: ForestPro : Specific number of objects
Post by: ben_img on September 27, 2020, 03:07:21 PM
the export need to be maximum 32.768 triangles meaning about 2730 items (12tris each)
(depends the quality of items i'm going to distribute, some lower poly are 8tris each so 4096 items )

How many generated i can't say, depends really
but assuming i have some already done forests that i'm copy pasting to a new area, similar size, it can sometimes go to triple the amount or more, so say 10.000 items instead of the 2730 limit.
So we're not talking millions anyways :)
Title: Re: ForestPro : Specific number of objects
Post by: Rokas on September 29, 2020, 09:00:14 AM
Hi. Updated ForestPack Toolbox  (https://forum.itoosoft.com/forest-pro-(*)/scripts-for-forest-pack/msg28238/#msg28238)with Your suggestion.

Hope this will be useful in Your workflow.
Title: Re: ForestPro : Specific number of objects
Post by: ben_img on September 29, 2020, 01:46:29 PM
Superb! Will try that asap
cheers for your help !