Flocking Birds

Hello there.

I am very new to openframeworks. Many years ago I’ve decided to code with C++ at DOS. But then I’ve stucked with pointers and decided continue my life with old pascal.

Years later I’ve decided to do some OOP programing with AS3. I’ve done some applications but flash made me sick when i saw my objects hanging at the memory although after i destroy them. ( no garbage collection! )

I’ve passed to processing hell yeah it is great but I want more performance…

I am trying to convert Daniel Shiffman’s sample at here:
http://www.shiffman.net/itp/classes/nat-…-/flocking/

to simulate flocking birds with openframewroks.

I’ve tried to re-write all the classes but I am stucked at the beginning. : /

Btw.
With processing I’ve done something like that
http://www.serkanaksu.com/faunaTest/

I want to perform some test with openframeworks to see how better i can improve my applciation.

maybe these can help you
http://forum.openframeworks.cc/t/boids/1028/0
http://forum.openframeworks.cc/t/experimenting-with-boids–flow-fields/811/0

[quote author=“ding”]maybe these can help you
http://forum.openframeworks.cc/t/boids/1028/0
http://forum.openframeworks.cc/t/experimenting-with-boids–flow-fields/811/0[/quote]

Thank you dig, I’am reading.

(this one is being mentioned in one the two threads linked above)
But definitely worth checking out!!! It’s a very nice explanation of the boids algorithm with the use of pseudocode:

http://www.vergenet.net/~conrad/boids/pseudocode.html

I have Daniel Shiffman’s code working on processing, I’ve tried to convert it to C++ but failed :confused:

I’ve downloaded opensteer, it looks great but looks very hard to use . I think I must look some opensteer sources that are used in openframeworks.

My problem at that point is with C++, I think I must read lots of tutorials about classes, vectors, lists and OOP programming at C++.

I am very familiar with other languages. But writing with C is very different.

I liked it. : )

I’ve found some usefull sites, but if anyone has better resources about learning OOP programming, classes, lists, vectors etc. (especially with openframeworks)

please share with me.

Thank you very much.

quote-author=“tim”
But definitely worth checking out!!! It’s a very nice explanation of the boids algorithm with the use of pseudocode:

http://www.vergenet.net/~conrad/boids/pseudocode.html[/quote]

An introduction to Object Oriented Programming and Classes in openFrameworks can be found on the wiki:

http://wiki.openframeworks.cc/index.php-…-2B-Classes

hope that helps!
-T

Thank you : ) I’ll read it.

[quote author=“tim”]An introduction to Object Oriented Programming and Classes in openFrameworks can be found on the wiki:

http://wiki.openframeworks.cc/index.php-…-2B-Classes

hope that helps!
-T[/quote]

sorry to dig up an old thread but thought this might help:
http://forum.openframeworks.cc/t/particles-based-on-daniel-shiffman’s-teaching/1068/0

its a port i did of another one of daniel shiffmans examples from that site. the c++ versus java differences apply to this example as well (and most of the examples in the ‘nature of code’ syllabus)

Thank you,

I am also going to check the codes but I’ve already finished a version by converting the codes from the orginal java version.

If anyone here needs i can post them.