3d7aad5bad5042f91170034a1d6576bba4c57619
[xscreensaver] / hacks / glx / lavalite.man
1 .de EX          \"Begin example
2 .ne 5
3 .if n .sp 1
4 .if t .sp .5
5 .nf
6 .in +.5i
7 ..
8 .de EE
9 .fi
10 .in -.5i
11 .if n .sp 1
12 .if t .sp .5
13 ..
14 .TH XScreenSaver 1 "18-May-2002" "X Version 11"
15 .SH NAME
16 lavalite - 3D OpenGL simulation of a Lavalite.
17 .SH SYNOPSIS
18 .B lavalite
19 [\-display \fIhost:display.screen\fP] [\-window] [\-root]
20 [\-visual \fIvisual\fP] [\-delay \fImicroseconds\fP] [\-fps]
21 [\-style \fIstyle\fP ]
22 [\-spin \fIxyz\fP ] [\-no-spin ]
23 [\-speed \fIfloat\fP ]
24 [\-resolution \fIinteger\fP ]
25 [\-count \fIinteger\fP ]
26 [\-no-smooth ]
27 [\-wireframe ]
28 [\-impatient ]
29 [\-lava-color \fIcolor\fP ]
30 [\-fluid-color \fIcolor\fP ]
31 [\-base-color \fIcolor\fP ]
32 [\-table-color \fIcolor\fP ]
33 [\-fluid-texture \fIfilename\fP ]
34 [\-base-texture \fIfilename\fP ]
35 [\-table-texture \fIfilename\fP ]
36 .SH DESCRIPTION
37 The \fIlavalite\fP program displays a 3D simulation of the famous lamp
38 of the same name.  It requires a fast computer with fast OpenGL support.
39 .SH OPTIONS
40 .I lavalite
41 accepts the following options:
42 .TP 8
43 .B \-window
44 Draw on a newly-created window.  This is the default.
45 .TP 8
46 .B \-root
47 Draw on the root window.
48 .TP 8
49 .B \-visual \fIvisual\fP\fP
50 Specify which visual to use.  Legal values are the name of a visual class,
51 or the id number (decimal or hex) of a specific visual.
52 .TP 8
53 .B \-style \fIstyle\fP\fP
54 Specify which model of lamp to draw.  Available models 
55 are: \fBClassic\fP, \fBGiant\fP, \fBCone\fP, and \fBRocket\fP.
56 Default: random.
57 .TP 8
58 .B \-spin \fIxyz\fP
59 Around which axes the model should auto-spin.  Defaults to "Z", meaning
60 it rotates horizontally, but otherwise pitch or roll.
61 .TP 8
62 .B \-no-spin
63 Same as \fB\-spin ''\fP.
64 .TP 8
65 .B \-speed \fIfloat\fP
66 A number controlling the frequency at which new blobs launch: you can
67 think of this as being related to the the heat of the lightbulb in
68 the base.  Default: 0.003.
69 .TP 8
70 .B \-delay \fIusecs\fP
71 The delay between steps of the animation; default is 30000 (0.03 second.)
72 .TP 8
73 .B \-resolution \fIinteger\fP
74 The size of the grid from which the mesh is created that is used
75 to polygonize the blobs.  higher values will give very smooth looking
76 blobs, at the expense of speed.  Default: 40.
77
78 The options "-resolution 10 -no-smooth" look kind of interesting.
79 .TP 8
80 .B \-fps
81 Display the current frame rate, CPU load, and polygon count.
82 .TP 8
83 .B \-count \fIinteger\fP
84 The maximum number of blobs that can be in motion at once.
85 Default: 3.
86 .TP 8
87 .B \-no-smooth
88 Turn off smoothing: the objects in the scene will be facetted.
89 .TP 8
90 .B \-wireframe
91 Render all objects in wireframe instead of as solids.
92 .TP 8
93 .B \-impatient
94 Provide this option if you are.  This will pre-warm the lamp, so when it
95 starts up, the first frame will show a blob already halfway up the lamp.
96 .TP 8
97 .B \-lava-color \fIcolor\fP
98 Specifies the color of the blobbies.  Default: red.
99 .TP 8
100 .B \-fluid-color \fIcolor\fP
101 Specifies the color of the fluid that the blobbies float in.
102 Default: light blue.
103 .TP 8
104 .B \-base-color \fIcolor\fP
105 Specifies the color of the lamp base, and the cap on top of the bottle.
106 Default: very dark gray.
107 .TP 8
108 .B \-table-color \fIcolor\fP
109 Specifies the color of the table that the lamp is sitting on.
110 Default: black (meaning it is invisible.)
111 .TP 8
112 .B \-fluid-texture \fIfilename\fP
113 An image file to wrap around the glass.
114
115 Note that on most systems, GL textures must have dimensions that are a
116 power of two.
117
118 Note also that colors and textures are both applied: so, if you apply a
119 texture and it isn't showing up, try specifying the corresponding color
120 as "white".  Otherwise, the combination of the two might be too dark to
121 see.
122 .TP 8
123 .B \-base-texture \fIfilename\fP
124 An image file to wrap around the base of the lamp, and the cap on top
125 of the bottle.
126 .TP 8
127 .B \-table-texture \fItexture\fP
128 An image file to spread across the table that the lamp is sitting on.
129 .SH ENVIRONMENT
130 .PP
131 .TP 8
132 .B DISPLAY
133 to get the default host and display number.
134 .TP 8
135 .B XENVIRONMENT
136 to get the name of a resource file that overrides the global resources
137 stored in the RESOURCE_MANAGER property.
138 .SH SEE ALSO
139 .BR X (1),
140 .BR xscreensaver (1),
141  http://www.lavaworld.com/
142  http://www.lavarnd.org/
143 .SH COPYRIGHT
144 Copyright \(co 2002 by Jamie Zawinski.
145 Permission to use, copy, modify, distribute, and sell this software and
146 its documentation for any purpose is hereby granted without fee,
147 provided that the above copyright notice appear in all copies and that
148 both that copyright notice and this permission notice appear in
149 supporting documentation.  No representations are made about the
150 suitability of this software for any purpose.  It is provided "as is"
151 without express or implied warranty.
152
153 LAVA LITE\(rg and the configuration of the LAVA\(rg brand motion lamp
154 are registered trademarks of Haggerty Enterprises, Inc.  The
155 configuration of the globe and base of the motion lamp are registered
156 trademarks of Haggerty Enterprises, Inc. in the U.S.A. and in other
157 countries around the world.
158
159 .SH AUTHOR
160 Jamie Zawinski <jwz@jwz.org>