Date:2010-09-28 11:36:17 (8 years 5 months ago)
Author:Werner Almesberger
Commit:43b3694d7ac61d53f0ad94b9796ce6a5525c8572
Message:Corrected aspect ratio, added lateral views, and improved Makefile.

- sfy/Makefile (sben): make a small image, for quick previews
- sfy/Makefile (ben): changed size from 1280x900 to 1600x800
- sfy/Makefile (upload): convert ben.png to ben.jpg and upload to
http://downloads.qi-hardware.com/people/werner/ben-scans/ben-bottom.jpg
- sfy/ben.pov: adjusted camera position and aspect ratio
- sfy/ben.pov: added lateral views
Files: sfy/Makefile (2 diffs)
sfy/ben.pov (3 diffs)

Change Details

sfy/Makefile
77
88.SUFFIXES: .sfy .inc
99
10.PHONY: new run pov ben clean
10.PHONY: new run pov sben ben clean
1111
1212new:
1313        ./solidify $(NAME).sfy $(FACE_A) $(FACE_B) $(D)
...... 
2121pov: $(NAME).pov $(NAME).inc
2222        povray +A -P -W1280 -H900 $(NAME).pov
2323
24ben: ben.pov $(PARTS:%=%.inc)
25        povray +A +P -W1280 -H900 ben.pov
26# povray +A +P -W640 -H480 ben.pov
24sben: ben.pov $(PARTS:%=%.inc)
25        povray -A +P -W640 -H320 ben.pov
2726
27ben ben.png: ben.pov $(PARTS:%=%.inc)
28        povray +A +P -W1600 -H800 ben.pov
29
30upload: ben
31        convert ben.png ben.jpg
32        qippl ben.jpg ben-scans
33
2834$(NAME).pov: template.pov
2935        sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }
3036
sfy/ben.pov
1919 */
2020
2121camera {
22    location <30, -150, 90>
22    location <30, -920, 300>
2323    look_at <0, 20, 20>
2424    sky z
25    right -4/3*x
25    right -2/1*x
26    angle 18
2627}
2728
2829background { color White }
...... 
3334}
3435
3536light_source {
36    <100, -500, 50>
37    <0, -100, 30>
3738    color White
3839}
3940
...... 
5354    ambient 0.5
5455}
5556
56object {
57    Part_dispshell
58    pigment { rgb <0.8, 0.8, 0.8> }
59    finish { Finish }
60    rotate <0, 0, 180>
61    translate <0, 0, 80>
62}
63
64object {
65    Part_dispbase
66    pigment { rgb <0.25, 0, 0.75> }
67    finish { Finish }
68    rotate <0, 0, 180>
69    translate <0, 0, 70>
70}
71
72/* lcdpcb 60 <0.5, 0. 0.5> */
73/* lcd 50 <1, 0, 0> */
74
75object {
76    Part_lcdframe
77    pigment { rgb <0.75, 0, 0.25> }
78    finish { Finish }
79    rotate <180, 0, 0>
80    translate <0, 0, 40>
57#declare All = union {
58    object {
59        Part_dispshell
60        pigment { rgb <0.8, 0.8, 0.8> }
61        finish { Finish }
62        rotate <0, 0, 180>
63        translate <0, 0, 80>
64    }
65
66    object {
67        Part_dispbase
68        pigment { rgb <0.25, 0, 0.75> }
69        finish { Finish }
70        rotate <0, 0, 180>
71        translate <0, 0, 70>
72    }
73
74    /* lcdpcb 60 <0.5, 0. 0.5> */
75    /* lcd 50 <1, 0, 0> */
76
77    object {
78        Part_lcdframe
79        pigment { rgb <0.75, 0, 0.25> }
80        finish { Finish }
81        rotate <180, 0, 0>
82        translate <0, 0, 40>
83    }
84
85    /* screen 30 <1, 0, 0> */
86
87    object {
88        Part_baseframe
89        pigment { rgb <0.5, 0.5, 0> }
90        finish { Finish }
91        translate <0, 0, 20>
92    }
93
94    object {
95        Part_kbd
96        pigment { rgb <0, 1, 0> }
97        finish { Finish }
98        translate <0, 0, 10>
99    }
100
101    /* pcb 0 <0, 0.75, 0.25> */
102
103    object {
104        Part_bottom
105        pigment { rgb <0, 0.5, 0.5> }
106        finish { Finish }
107        translate <0, 0, -10>
108    }
109
110    /* battery -20 <0, 0.25, 0.75> */
111
112    object {
113        Part_batcvr
114        pigment { rgb <0, 0, 1> }
115        finish { Finish }
116        rotate <0, 180, 0>
117        translate <0, 0, -30>
118    }
81119}
82120
83/* screen 30 <1, 0, 0> */
121object { All }
84122
85123object {
86    Part_baseframe
87    pigment { rgb <0.5, 0.5, 0> }
88    finish { Finish }
89    translate <0, 0, 20>
124    All
125    rotate <0, 0, 90>
126    translate <-110, 50, 0>
90127}
91128
92129object {
93    Part_kbd
94    pigment { rgb <0, 1, 0> }
95    finish { Finish }
96    translate <0, 0, 10>
97}
98
99/* pcb 0 <0, 0.75, 0.25> */
100
101object {
102    Part_bottom
103    pigment { rgb <0, 0.5, 0.5> }
104    finish { Finish }
105    translate <0, 0, -10>
106}
107
108/* battery -20 <0, 0.25, 0.75> */
109
110object {
111    Part_batcvr
112    pigment { rgb <0, 0, 1> }
113    finish { Finish }
114    rotate <0, 180, 0>
115    translate <0, 0, -30>
130    All
131    rotate <0, 0, -90>
132    translate <110, 50, 0>
116133}

Archive Download the corresponding diff file

Branches:
master



interactive