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

Annotation of /eyes/enlightenment_big.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Jul 24 10:18:46 2012 UTC (8 years, 2 months ago) by hib
Branch: MAIN
File MIME type: text/plain
cleanup

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

  ViewVC Help
Powered by ViewVC 1.1.26