/VB6-3D-Flocking-Boids

3D Flocking Boids

Primary LanguageVisual Basic

VB6 3D Flocking Boids

demo Animation

3D swimming Fishes Implemented by Flocking Boids Algorithm

Author: "reexre" , AKA: MiorSoft, Roberto Mior

Interesting features included in source code:

  • OCTREE: OctTree class for 3D collision detection. Derived from reexre QuadTree Class for 2D collision.

  • QuickSort: A QuickSort Algorihm used for sorting fishes draw-order that can be used for other pourposes.

  • FastEXP: A fast approximation of EXP function perforemed by Pade approximant: https://en.wikipedia.org/wiki/Pad%C3%A9_approximant Useful for Gaussian Shapes.

  • 3DCamera: A module to transform 3D coordinates to 2D screen coordinates.

Requires:

VBFORUMS: http://www.vbforums.com/showthread.php?870755-3D-Swimming-Fish-Algorithm&p=5356531&viewfull=1#post5356531

GIF: https://media.giphy.com/media/dJRcmFdKd2ezVKjwrF/giphy.gif