1glschool(6x) XScreenSaver manual glschool(6x)
2
3
4
6 glschool - a 3D schooling simulation
7
9 glschool [-display host:display.screen] [-visual visual] [-window]
10 [-root] [-wireframe] [-fps] [-delay number] [-nfish number] [-maxvel
11 number] [-minvel number] [-acclimit number] [-avoidfact number]
12 [-matchfact number] [-centerfact number] [-targetfact number] [-minra‐
13 dius number] [-momentum number] [-distexp number] [-goalchgf number]
14 [-fog] [-drawgoal] [-drawbbox]
15
17 Uses Craig Reynolds Boids algorithm to simulate a 3d school of fish.
18 See <http://www.red3d.com/cwr/boids> for a description of the algorithm
19 and the original paper. This is a lightly modified version of the
20 algorithm that supports goal attraction.
21
22 Many different behaviors are possible by tweaking the parameters. No
23 sanity checking is performed on the command line params, so if you want
24 to use negative accelerations or minimum velocity that is larger than
25 maximum velocity or that sort of thing, the simulation will try to
26 digest it.
27
28 It looks best with the highest number of fish that will give you an FPS
29 of > 25 or so.
30
31
33 -visual visual
34 Specify which visual to use. Legal values are the name of a
35 visual class, or the id number (decimal or hex) of a specific
36 visual.
37
38 -window Draw on a newly-created window. This is the default.
39
40 -root Draw on the root window.
41
42 -delay number
43 Per-frame delay, in microseconds. Default: 20000 (0.020 sec‐
44 onds.).
45
46 -wireframe | -no-wireframe
47 Render in wireframe instead of solid.
48
49 -fps Display the current frame rate, CPU load, and polygon count.
50
51 -fog | -no-fog
52 Whether to show foggy (cloudy) water.
53
54 -drawgoal | -no-drawgoal
55 Whether to show the school's attraction goal.
56
57 -drawbbox | -no-drawbbox
58 Whether to show the bounding box.
59
60 -fog | -no-fog
61 Whether to show foggy (cloudy) water.
62
63 -nfish number
64 Number of fish. Defaults to 100
65
66 -acclimit number
67 Acceleration limit. Defaults to 8.0
68
69 -minvel number
70 Minimum velocity. Defaults to 1.0
71
72 -maxvel number
73 Minimum velocity. Defaults to 7.0
74
75 -goalchgf number
76 Goal change frequency. Defaults to 50 (frames)
77
78 -avoidfact number
79 Avoidance acceleration factor. Defaults to 1.5
80
81 -matchfact number
82 Match avg velocity acceleration factor. Defaults to 0.15
83
84 -centerfact number
85 School centering acceleration factor. Defaults to 0.1
86
87 -targetfact number
88 Target attraction acceleration factor. Defaults to 80
89
90 -distexp number
91 Distance weighting exponent. Defaults to 2.2
92
93 -momentum number
94 Momentum. Defaults to 0.9
95
97 DISPLAY to get the default host and display number.
98
99 XENVIRONMENT
100 to get the name of a resource file that overrides the global
101 resources stored in the RESOURCE_MANAGER property.
102
104 X(1), xscreensaver(1)
105
107 Copyright © 2005-2006 by David C. Lambert. Permission to use, copy,
108 modify, distribute, and sell this software and its documentation for
109 any purpose is hereby granted without fee, provided that the above
110 copyright notice appear in all copies and that both that copyright
111 notice and this permission notice appear in supporting documentation.
112 No representations are made about the suitability of this software for
113 any purpose. It is provided "as is" without express or implied war‐
114 ranty.
115
117 David C. Lambert
118
119
120
121X Version 11 5.42-1.fc29 (30-Dec-2018) glschool(6x)