/[opencvs]/eyes/enlightenment_big.txt
ViewVC logotype

Contents of /eyes/enlightenment_big.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Mon Nov 12 07:32:09 2012 UTC (5 years, 5 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +11 -4 lines
File MIME type: text/plain
just a sync
1
2
3 # This is better than enlightenmnet.txt because
4 # 1. we always do the hologram now.
5 # 2. A border 1 square wide offsets the bigger squares so the eyes and tounge have only one image under them.
6 # 3. the tounge color can also be decided
7 #
8 # This evolutionary version was created for image number 17 of the set.
9
10 # build_final.sh was the old code for this
11 #
12
13
14 export PATH=$PATH:~/cvs/player/bin
15
16 #Size:
17 # 4800 - old school demos
18 # 2048 - new school demos
19 # 31200 - 43.3333333 inches at 720 dpi
20 # 31680 - 44 inches at 720 dpi/22 inches at 1440 dpi
21 # 63360 - 44 inches at 1440 dpi
22 # 28000 - 23.33333 inches at 1200 dpi
23 # 28800 - 24 inches at 1200 dpi
24 # 33600 - 23.333333 inches at 1440 dpi
25 # 16800 - 23.333333 inches at 720 dpi
26 # 131072 - 8192x8192 - this is for handling the fact that the lines are somewhat off kilter.
27
28 #15840 is 88 inches at 180 dpi
29
30 export ENLIGHTENMENT_SIZE=15840
31
32
33
34 # setup for source and size
35 #export ENLIGHTENMENT_HOME=/t/enlightenment/source
36 export ENLIGHTENMENT_HOME=/t/enlightenment/source_no_acid
37 export ENLIGHTENMENT_HOMEB=/t/enlightenment/source
38 export MAGICK_TMPDIR=/t/tmp
39 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
40 export ENLIGHTENMENT_ROWS=16
41 export ENLIGHTENMENT_COLUMNS=16
42 export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
43 export ENLIGHTENMENT_COLMM=`expr $ENLIGHTENMENT_COLUMNS - 1`
44 export ENLIGHTENMENT_ROWMM=`expr $ENLIGHTENMENT_ROWS - 1`
45 export ENLIGHTENMENT_SQUARESMM=`expr $ENLIGHTENMENT_ROWMM \* $ENLIGHTENMENT_COLMM`
46 export ENLIGHTENMENT_CBRDR=`expr $ENLIGHTENMENT_COLUMNS \* 2`
47 export ENLIGHTENMENT_RBRDR=`expr $ENLIGHTENMENT_ROWS \* 2 - 2`
48 export ENLIGHTENMENT_SQUARES_TOTAL=`echo $ENLIGHTENMENT_SQUARESMM + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR`
49 export ENLIGHTENMENT_SAMPLE_SIZE=$ENLIGHTENMENT_SIZE
50 export FILENAME=e
51 # ^^^ set to 131072 to have the squares skewed to the picture
52
53
54
55
56
57 # make a new size:
58 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE
59 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m
60 mkdir $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE
61 mkdir $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/m
62
63
64 # can multiply by 6 if want to, but there are multiple lines
65 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis.txt $ENLIGHTENMENT_DOT | multiproc.sh bash
66
67
68 # old way:
69 convert $ENLIGHTENMENT_HOMEB/common/base18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.bmp
70 convert $ENLIGHTENMENT_HOMEB/common/alpha18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.bmp
71 convert $ENLIGHTENMENT_HOMEB/common/alpha_hologram.png -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp
72 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt &
73 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.txt &
74 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt &
75 wait
76
77
78
79
80
81
82 # new code: to make the squares accurate witht eh performations.
83 perl $e/enl_box_range.pl > $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/box_range.txt
84 #cat settop0.txt setbottom0.txt setleft0.txt setright0.txt set0.txt | enlightenment_pattern box_range.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE
85 # and the pattern looked crappy. The psychadelics need to be exact to look good.
86 #So I reverse map the girl and vollia- the girl looks slightly more alive, and the old style mapping can continue
87
88 #new way:
89 echo $ENLIGHTENMENT_HOMEB/common/base18k.bmp | \
90 enlightenment_straighten /t/enlightenment/source/18000/box_range.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE \
91 >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt
92 echo $ENLIGHTENMENT_HOMEB/common/alpha_hologram.png | \
93 enlightenment_straighten /t/enlightenment/source/common/box_range4800.txt $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE \
94 >$ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt
95
96 # to build the hologram is unique because the numbers change based onthe resolution. But here is the 4800 deal
97 # build_greya enl_source.txt 4 4800 4800 600 600 0 4800 0 4800 | convert txt: hologram.png
98
99 # and here
100 # build_greya enl_source.txt 4 31680 31680 720 720 0 31680 0 31680 | convert txt: $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png
101 #
102 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 0 4800 | convert txt: h0.png &
103 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 4800 9600 | convert txt: h1.png &
104 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 9600 14400 | convert txt: h2.png &
105 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 14400 19200 | convert txt: h3.png &
106 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 19200 24000 | convert txt: h4.png &
107 # build_greya enl_source.txt 4 28800 28800 1200 1200 0 28800 24000 28800 | convert txt: h5.png &
108 # convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png h4.png h5.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
109
110
111 perl $e/enl_4800_to_x.pl </b/art/2011/enlightenment/source/4800/enl_source.txt $ENLIGHTENMENT_SIZE >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/enl_source.txt
112
113 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 0 4800 | convert txt: h0.png &
114 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 4800 9600 | convert txt: h1.png &
115 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 9600 14400 | convert txt: h2.png &
116 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 14400 19200 | convert txt: h3.png &
117 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 19200 24000 | convert txt: h4.png &
118 build_greya enl_source.txt 4 33600 33600 1200 1200 0 33600 24000 33600 | convert txt: h5.png &
119 wait
120 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png h4.png h5.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
121
122 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 0 5280 | convert txt: h0.png &
123 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 5280 10560 | convert txt: h1.png &
124 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 10560 15840 | convert txt: h2.png &
125 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 15840 21120 | convert txt: h3.png &
126 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 21120 26400 | convert txt: h4.png &
127 build_greya enl_source.txt 4 31200 31200 1200 1200 0 31200 26400 31200 | convert txt: h5.png &
128
129 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png h4.png h5.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
130 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
131
132
133
134
135
136 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 0 5280 | convert txt: h0.png &
137 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 5280 10560 | convert txt: h1.png &
138 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 10560 15840 | convert txt: h2.png &
139 build_greya enl_source.txt 4 16800 16800 1200 1200 0 16800 15840 16800 | convert txt: h3.png &
140
141 convert -limit memory 6000000000 -limit map 6000000000 h0.png h1.png h2.png h3.png -append $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp
142 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
143
144
145 # need hologram in both places
146 ln $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt
147
148
149
150
151 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
152 # note - alpha_hologram is adjusted as the extreme values of alpha make it more likely to see dots than randomness - this is weird because we do
153 # have uniform distribution - might be because I am using distance as a calculation. Anyways.
154
155
156
157
158
159 # eye color specific
160 # make templates
161 cd /t/enlightenment/.../build
162 export MAGICK_TMPDIR=/t/tmp
163
164 export EYE_COLOR=violet
165 export TOUNGE_COLOR=orange
166 export SEED=121083476
167 export POS=0
168 echo $SEED >seed.txt
169
170
171 export ENLIGHTENMENT_SQUARES_MINUS_3=`expr $ENLIGHTENMENT_SQUARES_TOTAL - 3`
172
173 # pick the 1 tounge pixel colors
174 awk <$ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/'" $1 }' |
175 randomize $SEED | head -1 > tounge_choice$POS.txt
176 cat $ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt |
177 randomize $SEED | head -1 > tounge_choicep$POS.txt
178
179 # in case the eye color is the same as the tounge colog - eliminate the choice from the eye choice
180 cat tounge_choicep$POS.txt | awk '{print "grep -v " $1 " <$ENLIGHTENMENT_HOME/common/$EYE_COLOR.txt >setez$POS.txt"}' | bash
181
182 # pick the 2 eye pixel colors
183 awk <setez$POS.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/'" $1 }' |
184 randomize $SEED | head -2 > eye_choice$POS.txt
185
186
187 # build the position by taking out the chosen eye colors, then randomizing the rest
188 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SAMPLE_SIZE/m/*.bmp >set$POS.txt
189 cat eye_choice$POS.txt tounge_choice$POS.txt | awk '{print "grep -v " $1 " <set$POS.txt >sett$POS.txt;mv sett$POS.txt set$POS.txt"}' | bash
190 randomize $SEED <set$POS.txt | head -$ENLIGHTENMENT_SQUARES_MINUS_3 >sett$POS.txt
191 head -126 sett$POS.txt >set$POS.txt
192 head -1 eye_choice$POS.txt >>set$POS.txt
193 head -127 sett$POS.txt | tail -1 >>set$POS.txt
194 tail -1 eye_choice$POS.txt >>set$POS.txt
195 tail -n+128 sett$POS.txt | head -28 >>set$POS.txt
196 cat tounge_choice$POS.txt >>set$POS.txt
197 tail -n+156 sett$POS.txt | head -67 >>set$POS.txt
198 tail -n+223 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >settop$POS.txt
199 tail -n+255 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >setbottom$POS.txt
200 tail -n+287 sett$POS.txt | head -$ENLIGHTENMENT_RBRDR >setleft$POS.txt
201 tail -$ENLIGHTENMENT_RBRDR sett$POS.txt >setright$POS.txt
202
203
204 rm sett$POS.txt
205
206 {
207
208
209 rm 2>/dev/null >/dev/null p$POS.txt
210
211
212
213 mknod p$POS.txt p
214
215 cat settop$POS.txt setbottom$POS.txt setleft$POS.txt setright$POS.txt set$POS.txt | \
216 enlightenment_montage $ENLIGHTENMENT_SIZE 0 0 $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE >p$POS".txt" &
217
218
219 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
220 p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt \
221 | convert txt: $FILENAME""$POS.png &
222
223
224
225
226
227
228
229 } &
230
231
232 export SEED=`expr $SEED + 1000000`
233 export POS=`expr $POS + 1`
234
235
236
237
238
239
240
241
242 convert holo_pixeled0.png -resize '20%x20%' h0.png
243 convert holo_pixeled1.png -resize '20%x20%' h1.png
244 convert holo_pixeled2.png -resize '20%x20%' h2.png
245 convert holo_pixeled3.png -resize '20%x20%' h3.png
246 convert holo_pixeled4.png -resize '20%x20%' h4.png
247 convert holo_pixeled5.png -resize '20%x20%' h5.png
248 convert holo_pixeled6.png -resize '20%x20%' h6.png
249 convert holo_pixeled7.png -resize '20%x20%' h7.png
250 convert holo_pixeled8.png -resize '20%x20%' h8.png
251 convert holo_pixeled9.png -resize '20%x20%' h9.png
252
253 convert holo_pixeled10.png -resize '20%x20%' h10.png
254 convert holo_pixeled11.png -resize '20%x20%' h11.png
255 convert holo_pixeled12.png -resize '20%x20%' h12.png
256 convert holo_pixeled13.png -resize '20%x20%' h13.png
257 convert holo_pixeled14.png -resize '20%x20%' h14.png
258 convert holo_pixeled15.png -resize '20%x20%' h15.png
259 convert holo_pixeled16.png -resize '20%x20%' h16.png
260 convert holo_pixeled17.png -resize '20%x20%' h17.png
261 convert holo_pixeled18.png -resize '20%x20%' h18.png
262 convert holo_pixeled19.png -resize '20%x20%' h19.png
263 convert holo_pixeled20.png -resize '20%x20%' h20.png
264
265
266 # FINAL
267 # then the final - set the size to be the big final size and
268 #export SEED=`expr $SEED + ?000000`
269 #export POS=?
270
271
272
273
274
275
276
277 #Then edit font_bottom.sh to add the bottom text
278
279
280
281
282
283
284 # signing it
285 {
286 echo >title.txt '
287 Document of title.
288
289 This document certifies that the digital piece "Enlightenment First Edition 26/69 created as of 3/21/2012
290 is authentic and exclusive for for Jael Strauss.
291
292 Here is the documentation that describes this digital artwork:
293
294
295
296 '
297
298
299 echo "identity" `/usr/local/bin/identity_of_file *.png` >>title.txt
300
301 gpg --print-md '*' *.png >>title.txt
302 }
303 unix2dos <title.txt >t2.txt
304 mv t2.txt title.txt
305
306 #As user chamelion:
307 gpg --export -a chamelion >chamelion.key
308 gpg --detach-sign title.txt
309 gpg --detach-sign *.png
310
311
312
313
314
315
316
317
318
319
320
321 Mini:
322
323
324
325
326 # signing it
327 {
328 echo >title.txt '
329 Document of title.
330
331 This document certifies that the digital piece "Enlightenment Mini Edition Prototype 1/4 created as of 3/21/2012
332 is authentic.
333
334 This is a miniature edition of Enlightenment, an embellishment of Trevor Brown'\''s "Little Strange Dots"
335 This is one of the 4 prototypes for this edition run. 22x22 inches @ 1440 dpi.
336
337 Here is the documentation that describes this digital artwork:
338
339
340
341 '
342
343
344 echo "identity" `/usr/local/bin/identity_of_file *.png` >>title.txt
345
346 gpg --print-md '*' *.png >>title.txt
347 }
348 unix2dos <title.txt >t2.txt
349 mv t2.txt title.txt
350
351 #As user chamelion:
352 gpg --export -a chamelion >chamelion.key
353 gpg --detach-sign title.txt
354 gpg --detach-sign *.png
355
356
357
358
359
360
361
362
363
364
365
366 # Old school building of pix image and randomify:
367
368 montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
369 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLMM"x"$ENLIGHTENMENT_ROWMM d$POS".png"
370 montage -limit memory 6000000000 -limit map 6000000000 `cat setleft$POS.txt`\
371 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR e$POS".png"
372 convert -limit memory 6000000000 -limit map 6000000000 "e$POS".png -resize 50%x50% f$POS.png
373 montage -limit memory 6000000000 -limit map 6000000000 `cat setright$POS.txt`\
374 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR g$POS".png"
375 convert -limit memory 6000000000 -limit map 6000000000 "g$POS".png -resize 50%x50% h$POS.png
376 convert -limit memory 6000000000 -limit map 6000000000 f$POS.png d$POS.png h$POS.png +append i$POS.png
377 rm d$POS.png e$POS.png f$POS.png g$POS.png h$POS.png
378 montage -limit memory 6000000000 -limit map 6000000000 `cat settop$POS.txt`\
379 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 j$POS".png"
380 convert -limit memory 6000000000 -limit map 6000000000 "j$POS".png -resize 50%x50% k$POS.png
381 montage -limit memory 6000000000 -limit map 6000000000 `cat setbottom$POS.txt`\
382 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 l$POS".png"
383 convert -limit memory 6000000000 -limit map 6000000000 "l$POS".png -resize 50%x50% m$POS.png
384 convert -limit memory 6000000000 -limit map 6000000000 k$POS.png i$POS.png m$POS.png -append p$POS.bmp
385 rm i$POS.png j$POS.png k$POS.png l$POS.png m$POS.png
386
387 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
388 #randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
389 # p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
390 # or for hologram
391 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
392 p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt \
393 | convert txt: holo_pixeled$POS.png
394
395 # nova is a star background pattern to fill in the entire 8 feet.
396 convert nova.png 0ran.png -composite -gravity center -density 180x180 final.png
397

  ViewVC Help
Powered by ViewVC 1.1.5