glschool(6x) | XScreenSaver manual | glschool(6x) |
glschool - a 3D schooling simulation
glschool [--display host:display.screen] [--visual visual] [--window] [--root] [--window-id number] [--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 the Craig Reynolds Boids algorithm to simulate a 3D school of fish. 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.
X(1), xscreensaver(1),
https://www.red3d.com/cwr/boids
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
6.06 (11-Dec-2022) | X Version 11 |