DOKK / manpages / debian 11 / xscreensaver-gl / glschool.6x.en
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.

Specify which visual to use. Legal values are the name of a visual class, or the id number (decimal or hex) of a specific visual.
Draw on a newly-created window. This is the default.
Draw on the root window.
Per-frame delay, in microseconds. Default: 20000 (0.020 seconds.).
Render in wireframe instead of solid.
Display the current frame rate, CPU load, and polygon count.

Whether to show foggy (cloudy) water.

Whether to show the school's attraction goal.

Whether to show the bounding box.

Whether to show foggy (cloudy) water.
Number of fish. Defaults to 100
Acceleration limit. Defaults to 8.0
Minimum velocity. Defaults to 1.0
Minimum velocity. Defaults to 7.0
Goal change frequency. Defaults to 50 (frames)
Avoidance acceleration factor. Defaults to 1.5
Match avg velocity acceleration factor. Defaults to 0.15
School centering acceleration factor. Defaults to 0.1
Target attraction acceleration factor. Defaults to 80
Distance weighting exponent. Defaults to 2.2
Momentum. Defaults to 0.9

to get the default host and display number.
to get the name of a resource file that overrides the global resources stored in the RESOURCE_MANAGER property.

X(1), xscreensaver(1)

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.45 (08-Dec-2020) X Version 11