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

Contents of /eyes/enlightenment2_kevin.txt

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5