POV-Ray : Newsgroups : povray.general : Flocking Server Time
5 Nov 2024 22:22:39 EST (-0500)
  Flocking (Message 1 to 6 of 6)  
From: Andrew
Subject: Flocking
Date: 10 Jan 2003 21:26:05
Message: <3e1f80bd@news.povray.org>
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

From: Andrew
Subject: Re: Flocking
Date: 11 Jan 2003 07:24:40
Message: <3e200d08@news.povray.org>
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

From: Alf Peake
Subject: Re: Flocking
Date: 11 Jan 2003 09:48:38
Message: <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

From: Andrew Wilcox
Subject: Re: Flocking
Date: 11 Jan 2003 11:05:41
Message: <3e2040d5@news.povray.org>
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

From: Greg M  Johnson
Subject: Re: Flocking
Date: 12 Jan 2003 22:28:22
Message: <3e223256$1@news.povray.org>
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

From: Andrew
Subject: Re: Flocking
Date: 13 Jan 2003 06:15:48
Message: <3e229fe4$1@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.