1
0
mirror of git://projects.qi-hardware.com/ben-scans.git synced 2024-11-22 02:27:10 +02:00

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
This commit is contained in:
Werner Almesberger 2010-09-28 06:36:17 -03:00
parent 03e6a54333
commit 43b3694d7a
2 changed files with 86 additions and 63 deletions

View File

@ -7,7 +7,7 @@ FACE_B=$(DIR)/ben-$(NAME)-$(BOTTOM)-100um.txt.bz2
.SUFFIXES: .sfy .inc .SUFFIXES: .sfy .inc
.PHONY: new run pov ben clean .PHONY: new run pov sben ben clean
new: new:
./solidify $(NAME).sfy $(FACE_A) $(FACE_B) $(D) ./solidify $(NAME).sfy $(FACE_A) $(FACE_B) $(D)
@ -21,9 +21,15 @@ run: $(NAME).sfy
pov: $(NAME).pov $(NAME).inc pov: $(NAME).pov $(NAME).inc
povray +A -P -W1280 -H900 $(NAME).pov povray +A -P -W1280 -H900 $(NAME).pov
ben: ben.pov $(PARTS:%=%.inc) sben: ben.pov $(PARTS:%=%.inc)
povray +A +P -W1280 -H900 ben.pov povray -A +P -W640 -H320 ben.pov
# povray +A +P -W640 -H480 ben.pov
ben ben.png: ben.pov $(PARTS:%=%.inc)
povray +A +P -W1600 -H800 ben.pov
upload: ben
convert ben.png ben.jpg
qippl ben.jpg ben-scans
$(NAME).pov: template.pov $(NAME).pov: template.pov
sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; } sed 's/NAME/$(NAME)/' template.pov >$@ || { rm -f $@; exit 1; }

View File

@ -19,10 +19,11 @@
*/ */
camera { camera {
location <30, -150, 90> location <30, -920, 300>
look_at <0, 20, 20> look_at <0, 20, 20>
sky z sky z
right -4/3*x right -2/1*x
angle 18
} }
background { color White } background { color White }
@ -33,7 +34,7 @@ light_source {
} }
light_source { light_source {
<100, -500, 50> <0, -100, 30>
color White color White
} }
@ -53,64 +54,80 @@ light_source {
ambient 0.5 ambient 0.5
} }
#declare All = union {
object {
Part_dispshell
pigment { rgb <0.8, 0.8, 0.8> }
finish { Finish }
rotate <0, 0, 180>
translate <0, 0, 80>
}
object {
Part_dispbase
pigment { rgb <0.25, 0, 0.75> }
finish { Finish }
rotate <0, 0, 180>
translate <0, 0, 70>
}
/* lcdpcb 60 <0.5, 0. 0.5> */
/* lcd 50 <1, 0, 0> */
object {
Part_lcdframe
pigment { rgb <0.75, 0, 0.25> }
finish { Finish }
rotate <180, 0, 0>
translate <0, 0, 40>
}
/* screen 30 <1, 0, 0> */
object {
Part_baseframe
pigment { rgb <0.5, 0.5, 0> }
finish { Finish }
translate <0, 0, 20>
}
object {
Part_kbd
pigment { rgb <0, 1, 0> }
finish { Finish }
translate <0, 0, 10>
}
/* pcb 0 <0, 0.75, 0.25> */
object {
Part_bottom
pigment { rgb <0, 0.5, 0.5> }
finish { Finish }
translate <0, 0, -10>
}
/* battery -20 <0, 0.25, 0.75> */
object {
Part_batcvr
pigment { rgb <0, 0, 1> }
finish { Finish }
rotate <0, 180, 0>
translate <0, 0, -30>
}
}
object { All }
object { object {
Part_dispshell All
pigment { rgb <0.8, 0.8, 0.8> } rotate <0, 0, 90>
finish { Finish } translate <-110, 50, 0>
rotate <0, 0, 180>
translate <0, 0, 80>
} }
object { object {
Part_dispbase All
pigment { rgb <0.25, 0, 0.75> } rotate <0, 0, -90>
finish { Finish } translate <110, 50, 0>
rotate <0, 0, 180>
translate <0, 0, 70>
}
/* lcdpcb 60 <0.5, 0. 0.5> */
/* lcd 50 <1, 0, 0> */
object {
Part_lcdframe
pigment { rgb <0.75, 0, 0.25> }
finish { Finish }
rotate <180, 0, 0>
translate <0, 0, 40>
}
/* screen 30 <1, 0, 0> */
object {
Part_baseframe
pigment { rgb <0.5, 0.5, 0> }
finish { Finish }
translate <0, 0, 20>
}
object {
Part_kbd
pigment { rgb <0, 1, 0> }
finish { Finish }
translate <0, 0, 10>
}
/* pcb 0 <0, 0.75, 0.25> */
object {
Part_bottom
pigment { rgb <0, 0.5, 0.5> }
finish { Finish }
translate <0, 0, -10>
}
/* battery -20 <0, 0.25, 0.75> */
object {
Part_batcvr
pigment { rgb <0, 0, 1> }
finish { Finish }
rotate <0, 180, 0>
translate <0, 0, -30>
} }