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

Contents of /eyes/loa.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Thu Mar 8 11:49:30 2012 UTC (6 years, 4 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
building girl3 (jenni)
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 # alpha - guassian blue 21
13
14 export PATH=$PATH:~/cvs/player/bin
15
16 # setup for source and size
17 export ENLIGHTENMENT_HOME=/t/loa/source
18 export ENLIGHTENMENT_HOMEB=/t/loa/source
19 export ENLIGHTENMENT_SIZE=4800
20 export MAGICK_TMPDIR=/t/tmp
21 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
22 export ENLIGHTENMENT_ROWS=16
23 export ENLIGHTENMENT_COLUMNS=16
24 export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
25 export ENLIGHTENMENT_COLMM=`expr $ENLIGHTENMENT_COLUMNS - 1`
26 export ENLIGHTENMENT_ROWMM=`expr $ENLIGHTENMENT_ROWS - 1`
27 export ENLIGHTENMENT_SQUARESMM=`expr $ENLIGHTENMENT_ROWMM \* $ENLIGHTENMENT_COLMM`
28 export ENLIGHTENMENT_CBRDR=`expr $ENLIGHTENMENT_COLUMNS \* 2`
29 export ENLIGHTENMENT_RBRDR=`expr $ENLIGHTENMENT_ROWS \* 2 - 2`
30 export ENLIGHTENMENT_SQUARES_TOTAL=`echo $ENLIGHTENMENT_SQUARESMM + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR`
31
32
33 # setup for 44 at 720 dpi
34 #export ENLIGHTENMENT_HOME=/t/enlightenment/source
35 export ENLIGHTENMENT_HOME=/t/enlightenment/source_no_acid
36 export ENLIGHTENMENT_HOMEB=/t/enlightenment/source
37 export ENLIGHTENMENT_SIZE=31680
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
50
51 # make a new size:
52 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE
53 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m
54
55 # edit squarethem and set the number of pixels
56 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis.txt $ENLIGHTENMENT_DOT | bash
57 # can multiply by 6 if want to
58
59
60 convert $ENLIGHTENMENT_HOME/common/base18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.bmp
61 convert $ENLIGHTENMENT_HOME/common/alpha18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.bmp
62 convert $ENLIGHTENMENT_HOME/common/alpha_hologram.png -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp
63
64 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt &
65 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt &
66 bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt &
67 wait
68 cd /t/en
69
70
71 # to build the hologram is unique because the numbers change based onthe resolution. But here is the 4800 deal
72 # build_greya enl_source.txt 4 4800 4800 600 600 0 4800 0 4800 | convert txt: hologram.png
73
74 # and here
75 # build_greya enl_source.txt 4 31680 31680 720 720 0 31680 0 31680 | convert txt: $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png
76
77 bash $e/analyze_source_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
78
79 # 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
80 # have uniform distribution - might be because I am using distance as a calculation. Anyways.
81
82
83
84
85
86
87 # eye color specific
88 # make templates
89 cd /t/enlightenment/.../build
90 export MAGICK_TMPDIR=/t/tmp
91
92
93 export EYE_COLOR=blue
94 export TOUNGE_COLOR=blue
95 export SEED=72
96
97 export POS=0
98 echo $SEED >seed.txt
99
100
101
102 export ENLIGHTENMENT_SQUARES_MINUS_3=`expr $ENLIGHTENMENT_SQUARES_TOTAL - 3`
103
104
105 # pick the 1 tounge pixel colors
106 awk <$ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/'" $1 }' |
107 randomize $SEED | head -1 > tounge_choice$POS.txt
108 cat $ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt |
109 randomize $SEED | head -1 > tounge_choicep$POS.txt
110
111 # in case the eye color is the same as the tounge colog - eliminate the choice from the eye choice
112 cat tounge_choicep$POS.txt | awk '{print "grep -v " $1 " <$ENLIGHTENMENT_HOME/common/$EYE_COLOR.txt >setez$POS.txt"}' | bash
113
114 # pick the 2 eye pixel colors
115 awk <setez$POS.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/'" $1 }' |
116 randomize $SEED | head -2 > eye_choice$POS.txt
117
118
119
120
121 # build the position by taking out the chosen eye colors, then randomizing the rest
122 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp >set$POS.txt
123 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
124 randomize $SEED <set$POS.txt | head -$ENLIGHTENMENT_SQUARES_MINUS_3 >sett$POS.txt
125 head -126 sett$POS.txt >set$POS.txt
126 head -1 eye_choice$POS.txt >>set$POS.txt
127 head -127 sett$POS.txt | tail -1 >>set$POS.txt
128 tail -1 eye_choice$POS.txt >>set$POS.txt
129 tail -n+128 sett$POS.txt | head -28 >>set$POS.txt
130 cat tounge_choice$POS.txt >>set$POS.txt
131 tail -n+156 sett$POS.txt | head -67 >>set$POS.txt
132 tail -n+223 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >settop$POS.txt
133 tail -n+255 sett$POS.txt | head -$ENLIGHTENMENT_CBRDR >setbottom$POS.txt
134 tail -n+287 sett$POS.txt | head -$ENLIGHTENMENT_RBRDR >setleft$POS.txt
135 tail -$ENLIGHTENMENT_RBRDR sett$POS.txt >setright$POS.txt
136
137
138 rm sett$POS.txt
139
140 {
141 montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
142 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLMM"x"$ENLIGHTENMENT_ROWMM d$POS".png"
143 montage -limit memory 6000000000 -limit map 6000000000 `cat setleft$POS.txt`\
144 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR e$POS".png"
145 convert -limit memory 6000000000 -limit map 6000000000 "e$POS".png -resize 50%x50% f$POS.png
146 montage -limit memory 6000000000 -limit map 6000000000 `cat setright$POS.txt`\
147 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR g$POS".png"
148 convert -limit memory 6000000000 -limit map 6000000000 "g$POS".png -resize 50%x50% h$POS.png
149 convert -limit memory 6000000000 -limit map 6000000000 f$POS.png d$POS.png h$POS.png +append i$POS.png
150 rm d$POS.png e$POS.png f$POS.png g$POS.png h$POS.png
151 montage -limit memory 6000000000 -limit map 6000000000 `cat settop$POS.txt`\
152 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 j$POS".png"
153 convert -limit memory 6000000000 -limit map 6000000000 "j$POS".png -resize 50%x50% k$POS.png
154 montage -limit memory 6000000000 -limit map 6000000000 `cat setbottom$POS.txt`\
155 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 l$POS".png"
156 convert -limit memory 6000000000 -limit map 6000000000 "l$POS".png -resize 50%x50% m$POS.png
157 convert -limit memory 6000000000 -limit map 6000000000 k$POS.png i$POS.png m$POS.png -append p$POS.bmp
158 rm i$POS.png j$POS.png k$POS.png l$POS.png m$POS.png
159
160 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
161 #randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
162 # p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
163 # or for hologram
164 # note - no hologram - reversed
165 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
166 $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: holo_pixeled$POS.png
167
168 } &
169
170
171 export SEED=`expr $SEED + 1000000`
172 export POS=`expr $POS + 1`
173
174
175
176 # pick the 1 tounge pixel colors
177 awk <$ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/'" $1 }' |
178 randomize $SEED | head -1 > tounge_choice$POS.txt
179 cat $ENLIGHTENMENT_HOME/common/$TOUNGE_COLOR.txt |
180 randomize $SEED | head -1 > tounge_choicep$POS.txt
181 # in case the eye color is the same as the tounge colog - eliminate the choice from the eye choice
182 cat tounge_choicep$POS.txt | awk '{print "grep -v " $1 " <$ENLIGHTENMENT_HOME/common/$EYE_COLOR.txt >setez$POS.txt"}' | bash
183 # pick the 2 eye pixel colors
184 awk <setez$POS.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/'" $1 }' |
185 randomize $SEED | head -2 > eye_choice$POS.txt
186
187 # build the position by taking out the chosen eye colors, then randomizing the rest
188 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_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 montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
208 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLMM"x"$ENLIGHTENMENT_ROWMM d$POS".png"
209 montage -limit memory 6000000000 -limit map 6000000000 `cat setleft$POS.txt`\
210 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR e$POS".png"
211 convert -limit memory 6000000000 -limit map 6000000000 "e$POS".png -resize 50%x50% f$POS.png
212 montage -limit memory 6000000000 -limit map 6000000000 `cat setright$POS.txt`\
213 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile 1"x"$ENLIGHTENMENT_RBRDR g$POS".png"
214 convert -limit memory 6000000000 -limit map 6000000000 "g$POS".png -resize 50%x50% h$POS.png
215 convert -limit memory 6000000000 -limit map 6000000000 f$POS.png d$POS.png h$POS.png +append i$POS.png
216 rm d$POS.png e$POS.png f$POS.png g$POS.png h$POS.png
217 montage -limit memory 6000000000 -limit map 6000000000 `cat settop$POS.txt`\
218 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 j$POS".png"
219 convert -limit memory 6000000000 -limit map 6000000000 "j$POS".png -resize 50%x50% k$POS.png
220 montage -limit memory 6000000000 -limit map 6000000000 `cat setbottom$POS.txt`\
221 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_CBRDR"x"1 l$POS".png"
222 convert -limit memory 6000000000 -limit map 6000000000 "l$POS".png -resize 50%x50% m$POS.png
223 convert -limit memory 6000000000 -limit map 6000000000 k$POS.png i$POS.png m$POS.png -append p$POS.bmp
224 rm i$POS.png j$POS.png k$POS.png l$POS.png m$POS.png
225
226 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
227 #randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
228 # p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
229 # or for hologram
230 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
231 p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt \
232 | convert txt: holo_pixeled$POS.png
233
234 } &
235
236
237 convert holo_pixeled0.png -resize '20%x20%' h0.png
238 convert holo_pixeled1.png -resize '20%x20%' h1.png
239 convert holo_pixeled2.png -resize '20%x20%' h2.png
240 convert holo_pixeled3.png -resize '20%x20%' h3.png
241 convert holo_pixeled4.png -resize '20%x20%' h4.png
242 convert holo_pixeled5.png -resize '20%x20%' h5.png
243 convert holo_pixeled6.png -resize '20%x20%' h6.png
244 convert holo_pixeled7.png -resize '20%x20%' h7.png
245 convert holo_pixeled8.png -resize '20%x20%' h8.png
246 convert holo_pixeled9.png -resize '20%x20%' h9.png
247
248 convert holo_pixeled10.png -resize '20%x20%' h10.png
249 convert holo_pixeled11.png -resize '20%x20%' h11.png
250 convert holo_pixeled12.png -resize '20%x20%' h12.png
251 convert holo_pixeled13.png -resize '20%x20%' h13.png
252 convert holo_pixeled14.png -resize '20%x20%' h14.png
253 convert holo_pixeled15.png -resize '20%x20%' h15.png
254 convert holo_pixeled16.png -resize '20%x20%' h16.png
255 convert holo_pixeled17.png -resize '20%x20%' h17.png
256 convert holo_pixeled18.png -resize '20%x20%' h18.png
257 convert holo_pixeled19.png -resize '20%x20%' h19.png
258 convert holo_pixeled20.png -resize '20%x20%' h20.png
259
260
261 # FINAL
262 # then the final - set the size to be the big final size and
263 #export SEED=`expr $SEED + ?000000`
264 #export POS=?
265
266
267 time montage -limit memory 6000000000 -limit map 6000000000 `ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp \
268 | randomize $SEED | head -$ENLIGHTENMENT_SQUARES ` \
269 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS p$POS".bmp"
270 time bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
271 # or for hologram
272 time randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
273 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt \
274 | convert -limit memory 1000000000 -limit map 1000000000 txt: holo_pixeled$POS.png
275
276 tail $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
277
278
279
280
281
282 #Then edit font_bottom.sh to add the bottom text
283
284
285
286
287
288
289 # signing it
290 {
291 echo >title.txt '
292 Document of title.
293
294 This document certifies that the digital piece "Enlightenment First Edition 20/69 created as of 12/217/2011
295 is authentic and exclusive.
296
297 Here is the documentation that describes this digital artwork:
298
299
300
301 '
302
303
304 echo "identity" `~/cvs/document_encoder/identity_of_file *.png` >>title.txt
305
306 gpg --print-md '*' *.png >>title.txt
307 }
308 unix2dos <title.txt >t2.txt
309 mv t2.txt title.txt
310
311 #As user chamelion:
312 gpg --export -a chamelion >chamelion.key
313 gpg --detach-sign title.txt
314 gpg --detach-sign *.png
315
316
317
318
319

  ViewVC Help
Powered by ViewVC 1.1.5