Author Topic: Just a simple flocking demo  (Read 4044 times)

Offline kaotiklabs

  • Dr. Type
  • ****
  • Posts: 313
  • Spain is diferent
    • View Profile
Just a simple flocking demo
« on: 2008-Jun-02 »
Hi mates,

First of all, nice to meet you all.
I´ve recently discovered this great sdk for high speed developing and Im quite amazed.
My greetings to the developers.

Just one to show you a small demo about flocking behaviours.
The code is quite dirty, did it in 2 hours while I was learning the environtment.

Maybe I will use it in some kind of game, I think it looks cool.

mouse button 1 : atraction
mouse button 2 : repulsion

Give your opinion. Any ideas will be valorated.
See ya!


[attachment deleted by admin]
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10709
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Just a simple flocking demo
« Reply #1 on: 2008-Jun-04 »
Very nice. In flocking demos, fishes have a velocity that can never be 0. Thus, the fish won't stay on one spot. Apart from thtat, ace work.

Offline Quentin

  • Prof. Inline
  • *****
  • Posts: 915
    • View Profile
Re: Just a simple flocking demo
« Reply #2 on: 2008-Jun-04 »
looks nice. =)
but the fishies are flickering when not using the mouse. Perhaps you can make them moving around slowly in this case.

Offline kaotiklabs

  • Dr. Type
  • ****
  • Posts: 313
  • Spain is diferent
    • View Profile
Re: Just a simple flocking demo
« Reply #3 on: 2008-Jun-05 »
hehehe I know, I know.
I'm not trying to straightly simulate fish flocks, just a generic algorithm implementation.

Either way rules' weights are not well balanced and that results in an ugly flickering.

I'll follow you're advice.
Thanks!

Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!