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

Contents of /eyes/enlightenment.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations)
Mon Nov 12 07:32:09 2012 UTC (6 years ago) by hib
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -1 lines
File MIME type: text/plain
just a sync
1 OBSOLETE - use enlightenment 2
2 This stiched over around 17 or so
3 OBSOLETE - use enlightenment 2
4 OBSOLETE - use enlightenment 2
5 OBSOLETE - use enlightenment 2
6 OBSOLETE - use enlightenment 2
7 OBSOLETE - use enlightenment 2
8 OBSOLETE - use enlightenment 2
9 OBSOLETE - use enlightenment 2
10 OBSOLETE - use enlightenment 2
11 OBSOLETE - use enlightenment 2
12 OBSOLETE - use enlightenment 2
13 OBSOLETE - use enlightenment 2
14 OBSOLETE - use enlightenment 2
15 OBSOLETE - use enlightenment 2
16 OBSOLETE - use enlightenment 2
17 OBSOLETE - use enlightenment 2
18 OBSOLETE - use enlightenment 2
19 OBSOLETE - use enlightenment 2
20 OBSOLETE - use enlightenment 2
21
22 # build_final.sh was the old code for this
23 #
24
25
26 export PATH=$PATH:~/cvs/player/bin
27
28 # setup for source and size
29 export ENLIGHTENMENT_HOME=/t/enlightenment/source
30 export ENLIGHTENMENT_SIZE=4800
31 export MAGICK_TMPDIR=/t/tmp
32 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
33 export ENLIGHTENMENT_ROWS=16
34 export ENLIGHTENMENT_COLUMNS=16
35 export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
36
37
38
39
40 # setup for 44 at 720 dpi
41 export ENLIGHTENMENT_HOME=/t/enlightenment/source
42 export ENLIGHTENMENT_SIZE=31680
43 export MAGICK_TMPDIR=/t/tmp
44 export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
45 export ENLIGHTENMENT_ROWS=16
46 export ENLIGHTENMENT_COLUMNS=16
47 export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
48
49
50
51
52 # make a new size:
53 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE
54 mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m
55
56 # edit squarethem and set the number of pixels
57 perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis.txt $ENLIGHTENMENT_DOT | bash
58 # can multiply by 6 if want to
59
60
61 convert $ENLIGHTENMENT_HOME/common/base18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.png
62 convert $ENLIGHTENMENT_HOME/common/alpha18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.png
63 convert $ENLIGHTENMENT_HOME/common/alpha_hologram.png -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.png
64
65 bash $e/analyze_source_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.png >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt &
66 bash $e/analyze_source_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.png >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt &
67 bash $e/analyze_source_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.png >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt &
68 wait
69 cd /t/en
70
71
72 # to build the hologram is unique because the numbers change based onthe resolution. But here is the 4800 deal
73 # build_greya enl_source.txt 4 4800 4800 600 600 0 4800 0 4800 | convert txt: hologram.png
74
75 # and here
76 # build_greya enl_source.txt 4 31680 31680 720 720 0 31680 0 31680 | convert txt: $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png
77
78 bash $e/analyze_source_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
79
80 # 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
81 # have uniform distribution - might be because I am using distance as a calculation. Anyways.
82
83
84
85
86 # make templates
87 export MAGICK_TMPDIR=/t/tmp
88 cd /t/enlightenment/.../build
89
90 export SEED=26
91 export POS=0
92 echo $SEED >seed.txt
93
94 {
95 montage -limit memory 6000000000 -limit map 6000000000 `ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp \
96 | randomize $SEED | head -$ENLIGHTENMENT_SQUARES ` \
97 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS p$POS".bmp"
98 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
99 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
100 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
101 # or for hologram
102 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
103 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt \
104 | convert txt: holo_pixeled$POS.png
105
106 } &
107
108 export SEED=`expr $SEED + 1000000`
109 export POS=`expr $POS + 1`
110
111 {
112 montage -limit memory 6000000000 -limit map 6000000000 `ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp \
113 | randomize $SEED | head -$ENLIGHTENMENT_SQUARES ` \
114 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS p$POS".bmp"
115 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
116 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
117 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
118 # or for hologram
119 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
120 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt \
121 | convert txt: holo_pixeled$POS.png
122
123 } &
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139 # eye color specific
140 # make templates
141 cd /t/enlightenment/.../build
142 export MAGICK_TMPDIR=/t/tmp
143
144
145 export EYE_COLOR=green
146 export SEED=26
147
148 export POS=0
149 echo $SEED >seed.txt
150
151
152
153 export ENLIGHTENMENT_SQUARES_MINUS_4=`expr $ENLIGHTENMENT_SQUARES - 4`
154
155 # pick the 4 eye pixel colors
156 awk <$ENLIGHTENMENT_HOME/common/$EYE_COLOR.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/'" $1 }' |
157 randomize $SEED | head -4 > eye_choice$POS.txt
158 # build the position by taking out the chosen eye colors, then randomizing the rest
159 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp >set$POS.txt
160 awk <eye_choice$POS.txt '{print "grep -v " $1 " <set$POS.txt >sett$POS.txt;mv sett$POS.txt set$POS.txt"}' | bash
161 randomize $SEED <set$POS.txt | head -$ENLIGHTENMENT_SQUARES_MINUS_4 >sett$POS.txt
162 head -134 sett$POS.txt >set$POS.txt
163 cat eye_choice$POS.txt >>set$POS.txt
164 tail -118 sett$POS.txt >>set$POS.txt
165 rm sett$POS.txt
166
167 {
168 montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
169 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS p$POS".bmp"
170 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
171 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
172 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
173 # or for hologram
174 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
175 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt \
176 | convert txt: holo_pixeled$POS.png
177
178 } &
179
180 export SEED=`expr $SEED + 1000000`
181 export POS=`expr $POS + 1`
182
183 # pick the 4 eye pixel colors
184 awk <$ENLIGHTENMENT_HOME/common/$EYE_COLOR.txt '{print "'$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/'" $1 }' |
185 randomize $SEED | head -4 > eye_choice$POS.txt
186 # build the position by taking out the chosen eye colors, then randomizing the rest
187 ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp >set$POS.txt
188 awk <eye_choice$POS.txt '{print "grep -v " $1 " <set$POS.txt >sett$POS.txt;mv sett$POS.txt set$POS.txt"}' | bash
189 randomize $SEED <set$POS.txt | head -$ENLIGHTENMENT_SQUARES_MINUS_4 >sett$POS.txt
190 head -134 sett$POS.txt >set$POS.txt
191 cat eye_choice$POS.txt >>set$POS.txt
192 tail -118 sett$POS.txt >>set$POS.txt
193 rm sett$POS.txt
194
195 {
196 montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
197 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS p$POS".bmp"
198 bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
199 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
200 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt | convert txt: pixeled.$POS.png
201 # or for hologram
202 randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
203 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt \
204 | convert txt: holo_pixeled$POS.png
205
206 } &
207
208
209 convert holo_pixeled0.png -resize '25%x25X' h0.png
210 convert holo_pixeled1.png -resize '25%x25X' h1.png
211 convert holo_pixeled2.png -resize '25%x25X' h2.png
212 convert holo_pixeled3.png -resize '25%x25X' h3.png
213 convert holo_pixeled4.png -resize '25%x25X' h4.png
214 convert holo_pixeled5.png -resize '25%x25X' h5.png
215 convert holo_pixeled6.png -resize '25%x25X' h6.png
216 convert holo_pixeled7.png -resize '25%x25X' h7.png
217 convert holo_pixeled8.png -resize '25%x25X' h8.png
218 convert holo_pixeled9.png -resize '25%x25X' h9.png
219
220
221
222 # then the final - set the size to be the big final size and
223 #export SEED=`expr $SEED + ?000000`
224 #export POS=?
225
226
227 time montage -limit memory 6000000000 -limit map 6000000000 `ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp \
228 | randomize $SEED | head -$ENLIGHTENMENT_SQUARES ` \
229 -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS p$POS".bmp"
230 time bash analyze_fast_image.sh p$POS".bmp" >p$POS".txt"
231 # or for hologram
232 time randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt \
233 p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt \
234 | convert -limit memory 1000000000 -limit map 1000000000 txt: holo_pixeled$POS.png
235
236 tail $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt p$POS.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
237
238
239
240
241
242 #Then edit font_bottom.sh to ass the bottom text
243
244
245
246
247
248
249 # signing it
250 {
251 echo >title.txt '
252 Document of title.
253
254 This document certifies that the digital piece "Enlightenment First Edition 32/69 created as of 8/19/2012
255 is authentic.
256
257 Here is the documentation that describes this digital artwork:
258
259
260
261 '
262
263
264 echo "identity" `~/cvs/document_encoder/identity_of_file *.png` >>title.txt
265
266 gpg --print-md '*' *.png >>title.txt
267 }
268
269
270 #As user chamelion:
271 gpg --detach-sign title.txt
272 gpg --detach-sign *.png
273
274
275 gpg --export -a chamelion >chamelion.key
276
277
278
279

  ViewVC Help
Powered by ViewVC 1.1.5