|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I've been playing around with flocking, using a simple system where the
"birds" try and end up at the centre of the flock, head in the same
direction as the flock, and keep away from each other. Each influence
is simply added to the birds' velocites - they rotate to point to where
they want to go, they simply move straight there. However, I can't seem
to get it right - my birds either end up in clumps or wander randomly on
their own. Has anyone produced a working flocking algorithm in Pov?
I'd be interested to see the code.
TiA
Andrew
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Oops - I meant to say they DON'T rotate to change heading:
>...
> is simply added to the birds' velocites - they rotate to point to
where
> they want to go, they simply move straight there. However, I can't
seem
>...
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I think it was Greg M. Johnson who had a "boids" routine for flocking
birds. Try "Greg's boids page" on Google.
Alf
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Trying to get to the center could produce any sized flock, since small and
large distributions all have a center. I think you have to have them want
to be within a certain distance from the center, or a within certain
distance from a leader, while at the same time not being to close to their
neighbors.
Andrew
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks for the plug. The address is:
http://www.geocities.com/pterandon/boids.html
"Alf Peake" <alf### [at] peake42freeservecouk> wrote in message
news:3e202ec6@news.povray.org...
> I think it was Greg M. Johnson who had a "boids" routine for flocking
> birds. Try "Greg's boids page" on Google.
>
> Alf
>
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks for the link - it was quite helpful to see a working example of
some code!
"Alf Peake" <alf### [at] peake42freeservecouk> wrote in message
news:3e202ec6@news.povray.org...
> I think it was Greg M. Johnson who had a "boids" routine for flocking
> birds. Try "Greg's boids page" on Google.
>
> Alf
>
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |