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

Annotation of /eyes/fabric.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Sun Apr 22 09:51:23 2012 UTC (7 years, 10 months ago) by hib
Branch: MAIN
CVS Tags: HEAD
File MIME type: text/plain
cleaning up

1 hib 1.1
2     For the fabric - just make a 5 inch by 42 inch fabric with the psychadelics,
3     and then do the hologram insertion like with ben
4     Similar to enlightenmnet,m etc.
5     And we are going full 1440 dpi mofo!
6    
7    
8     export PATH=$PATH:~/cvs/player/bin
9    
10     # setup for source and size
11     #export ENLIGHTENMENT_HOME=/t/enlightenment/source
12     export ENLIGHTENMENT_HOME=/t/enlightenment/source_no_acid
13     export ENLIGHTENMENT_HOMEB=/t/enlightenment/source
14     export ENLIGHTENMENT_SIZE=4800
15     export MAGICK_TMPDIR=/t/tmp
16     export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 16`
17     export ENLIGHTENMENT_ROWS=3
18     export ENLIGHTENMENT_COLUMNS=24
19     export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
20     export ENLIGHTENMENT_COLMM=`expr $ENLIGHTENMENT_COLUMNS - 1`
21     export ENLIGHTENMENT_ROWMM=`expr $ENLIGHTENMENT_ROWS - 1`
22     export ENLIGHTENMENT_SQUARESMM=`expr $ENLIGHTENMENT_ROWMM \* $ENLIGHTENMENT_COLMM`
23     export ENLIGHTENMENT_CBRDR=`expr $ENLIGHTENMENT_COLUMNS \* 2`
24     export ENLIGHTENMENT_RBRDR=`expr $ENLIGHTENMENT_ROWS \* 2 - 2`
25     export ENLIGHTENMENT_SQUARES_TOTAL=`echo $ENLIGHTENMENT_SQUARESMM + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR`
26    
27    
28    
29     # setup for real
30     #export ENLIGHTENMENT_HOME=/t/enlightenment/source
31     export ENLIGHTENMENT_HOME=/t/enlightenment/source_no_acid
32     export ENLIGHTENMENT_HOMEB=/t/enlightenment/source
33     export ENLIGHTENMENT_SIZE=60480
34     export MAGICK_TMPDIR=/t/tmp
35     export ENLIGHTENMENT_DOT=`expr $ENLIGHTENMENT_SIZE / 24`
36     export ENLIGHTENMENT_ROWS=3
37     export ENLIGHTENMENT_COLUMNS=24
38     export ENLIGHTENMENT_SQUARES=`expr $ENLIGHTENMENT_ROWS \* $ENLIGHTENMENT_COLUMNS`
39     export ENLIGHTENMENT_COLMM=`expr $ENLIGHTENMENT_COLUMNS - 1`
40     export ENLIGHTENMENT_ROWMM=`expr $ENLIGHTENMENT_ROWS - 1`
41     export ENLIGHTENMENT_SQUARESMM=`expr $ENLIGHTENMENT_ROWMM \* $ENLIGHTENMENT_COLMM`
42     export ENLIGHTENMENT_CBRDR=`expr $ENLIGHTENMENT_COLUMNS \* 2`
43     export ENLIGHTENMENT_RBRDR=`expr $ENLIGHTENMENT_ROWS \* 2 - 2`
44     export ENLIGHTENMENT_SQUARES_TOTAL=`echo $ENLIGHTENMENT_SQUARESMM + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR + $ENLIGHTENMENT_CBRDR + $ENLIGHTENMENT_RBRDR`
45    
46    
47     # make a new size:
48     mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE
49     mkdir $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m
50    
51     # edit squarethem and set the number of pixels
52     perl $e/squarethem.pl <$ENLIGHTENMENT_HOME/common/analysis.txt $ENLIGHTENMENT_DOT | bash
53     # can multiply by 6 if want to
54    
55    
56     convert $ENLIGHTENMENT_HOME/common/base18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.bmp
57     convert $ENLIGHTENMENT_HOME/common/alpha18k.bmp -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.bmp
58     convert $ENLIGHTENMENT_HOME/common/alpha_hologram.png -resize $ENLIGHTENMENT_SIZE"x"$ENLIGHTENMENT_SIZE $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp
59    
60     bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/base.txt &
61     bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha.txt &
62     bash $e/analyze_fast_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.bmp >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/alpha_hologram.txt &
63     wait
64     cd /t/en
65    
66    
67     # to build the hologram is unique because the numbers change based onthe resolution. But here is the 4800 deal
68     # build_greya enl_source.txt 4 4800 4800 600 600 0 4800 0 4800 | convert txt: hologram.png
69    
70     # and here
71     # build_greya enl_source.txt 4 31680 31680 720 720 0 31680 0 31680 | convert txt: $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png
72    
73     bash $e/analyze_source_image.sh $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.png >$ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/hologram.txt
74    
75     # 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
76     # have uniform distribution - might be because I am using distance as a calculation. Anyways.
77    
78    
79     build_diffa eye_source.txt 44 7200 900 171 171 0 7200 0 900 128 128 128 90 | convert txt: hologram.png
80    
81    
82    
83    
84    
85    
86     # eye color specific
87     # make templates
88     cd /t/enlightenment/.../build
89     export MAGICK_TMPDIR=/t/tmp
90    
91     export SEED=14
92     export POS=0
93     echo $SEED >seed.txt
94    
95    
96    
97    
98    
99    
100    
101     # build the position by taking out the chosen eye colors, then randomizing the rest
102     ls $ENLIGHTENMENT_HOME/$ENLIGHTENMENT_SIZE/m/*.bmp | randomize $SEED | head -$ENLIGHTENMENT_SQUARES >set$POS.txt
103    
104    
105     {
106     montage -limit memory 6000000000 -limit map 6000000000 `cat set$POS.txt`\
107     -geometry $ENLIGHTENMENT_DOT"x"$ENLIGHTENMENT_DOT"+0+0" -tile $ENLIGHTENMENT_COLUMNS"x"$ENLIGHTENMENT_ROWS d$POS".png"
108     #randomify $ENLIGHTENMENT_SIZE $ENLIGHTENMENT_SIZE $SEED $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/base.txt \
109     # p$POS.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/alpha_hologram.txt $ENLIGHTENMENT_HOMEB/$ENLIGHTENMENT_SIZE/hologram.txt \
110     # | convert txt: holo_pixeled$POS.png
111     } &
112    
113    
114     export SEED=`expr $SEED + 1000000`
115     export POS=`expr $POS + 1`
116    
117    
118    
119    
120     Picked d5
121     Then prep for hologram_over_picture (c code needs modification) and FADE_FOR_FABRIC set (so we seehte hologram in white and black space
122    
123    
124    
125    
126    
127     analyze_source_image.txt hologram.png > hologram.txt
128     analyze_source_image.sh d5.png >tilified_awaiting_hologram2.txt
129     hologram_over_picture | convert txt: result.png
130    
131    
132    
133     #Then edit font_bottom.sh to add the bottom text
134    
135    
136     For the big one - use a real hologram
137     japan/version_1/v :
138     convert ewbw.png -crop 60480x7560+1440+2880 fabric.bmp
139    
140    
141    
142    
143     # signing it
144     {
145     echo >title.txt '
146     Document of title.
147    
148     This document certifies that the digital piece "Enlightenment First Edition 24/69 created as of 2/29/2012
149     is authentic and exclusive for for Lilith, who controls the wind and sky: the one to make all babies cry.
150    
151     Here is the documentation that describes this digital artwork:
152    
153    
154    
155     '
156    
157    
158     echo "identity" `/usr/local/bin/identity_of_file *.png` >>title.txt
159    
160     gpg --print-md '*' *.png >>title.txt
161     }
162     unix2dos <title.txt >t2.txt
163     mv t2.txt title.txt
164    
165     #As user chamelion:
166     gpg --export -a chamelion >chamelion.key
167     gpg --detach-sign title.txt
168     gpg --detach-sign *.png
169    
170    
171    
172    
173    
174    
175    

  ViewVC Help
Powered by ViewVC 1.1.26