can increase the number of boids without causing a reset.

Nov 30, 2007 at 3:56pm

can increase the number of boids without causing a reset.

hello dear community

when i’m increasing the number of boids, each boid is relocated in a apparently randomly choosen position. but for my project i wish them to stay in the current position when i create a new one. the latter should be put (e.g.) into the position of the attraction point.
anybody has got some suggestions how i could achieve this? or just a hint for the right way?
thanks a lot

rhe

#34829
Nov 30, 2007 at 5:04pm

sorry for that: i am referring the boids2d object.
cheers
rhe

#118092
Nov 30, 2007 at 5:53pm

how about defining the maximum number of boids you will be using at
the beginning, and just using a jit.submatrix before the draw sequence
to hide the non-needed ones?

On Nov 30, 2007, at 10:56 AM, ivo wrote:

>
> hello dear community
>
>
> when i’m increasing the number of boids, each boid is relocated in a
> apparently randomly choosen position. but for my project i wish them
> to stay in the current position when i create a new one. the latter
> should be put (e.g.) into the position of the attraction point.
> anybody has got some suggestions how i could achieve this? or just a
> hint for the right way?
> thanks a lot
>
> rhe
>

#118093
Nov 30, 2007 at 5:57pm

a possible strategy is to start with as many boids as you ultimately need
and “unmask” them when needed.
you can simulate the “begin from emitter” effect with watching the next
batch and just before they appear run a fake boid from center to their known
position.
a hack

On Nov 30, 2007 7:04 PM, ivo wrote:

>
> sorry for that: i am referring the boids2d object.
> cheers
> rhe
>

#118094

You must be logged in to reply to this topic.