Itoo Software Forum

Author Topic: ForestPro : Specific number of objects  (Read 245 times)

ben_img

  • Newbie
  • *
  • Posts: 20
ForestPro : Specific number of objects
« 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

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2593
    • iToo
Re: ForestPro : Specific number of objects
« Reply #1 on: September 25, 2020, 08:11:56 AM »
Hi

For exact number You can use Reference or Particle Flow Distribution method. Image wont do in such cases.



Hope this helps
Rokas
iToo Software

ben_img

  • Newbie
  • *
  • Posts: 20
Re: ForestPro : Specific number of objects
« Reply #2 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 ?

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2593
    • iToo
Re: ForestPro : Specific number of objects
« Reply #3 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?
Rokas
iToo Software

ben_img

  • Newbie
  • *
  • Posts: 20
Re: ForestPro : Specific number of objects
« Reply #4 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

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2593
    • iToo
Re: ForestPro : Specific number of objects
« Reply #5 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?
Rokas
iToo Software

ben_img

  • Newbie
  • *
  • Posts: 20
Re: ForestPro : Specific number of objects
« Reply #6 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 :)

Rokas

  • iToo Software
  • Hero Member
  • *****
  • Posts: 2593
    • iToo
Re: ForestPro : Specific number of objects
« Reply #7 on: September 29, 2020, 09:00:14 AM »
Hi. Updated ForestPack Toolbox with Your suggestion.

Hope this will be useful in Your workflow.
Rokas
iToo Software

ben_img

  • Newbie
  • *
  • Posts: 20
Re: ForestPro : Specific number of objects
« Reply #8 on: September 29, 2020, 01:46:29 PM »
Superb! Will try that asap
cheers for your help !