glschool(6x) | XScreenSaver manual | glschool(6x) |
glschool - a 3D schooling simulation
glschool [-display host:display.screen] [-visual visual] [-window] [-root] [-wireframe] [-fps] [-delay number] [-nfish number] [-maxvel number] [-minvel number] [-acclimit number] [-avoidfact number] [-matchfact number] [-centerfact number] [-targetfact number] [-minradius number] [-momentum number] [-distexp number] [-goalchgf number] [-fog] [-drawgoal] [-drawbbox]
Uses Craig Reynolds Boids algorithm to simulate a 3d school of fish. See <http://www.red3d.com/cwr/boids> for a description of the algorithm and the original paper. This is a lightly modified version of the algorithm that supports goal attraction.
Many different behaviors are possible by tweaking the parameters. No sanity checking is performed on the command line params, so if you want to use negative accelerations or minimum velocity that is larger than maximum velocity or that sort of thing, the simulation will try to digest it.
It looks best with the highest number of fish that will give you an FPS of > 25 or so.
Copyright © 2005-2006 by David C. Lambert. Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. No representations are made about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
David C. Lambert
5.42 (28-Dec-2018) | X Version 11 |