From 33a5b3cbaf945067d217d08c482c9a48efdcfae4 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 19 Sep 2008 23:02:07 +0200 Subject: Added povray files. --- 3d/.gitignore | 4 + 3d/Makefile | 10 ++ 3d/watch.pov | 463 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ binwatch.mpd | 21 +++ 4 files changed, 498 insertions(+) create mode 100644 3d/.gitignore create mode 100644 3d/Makefile create mode 100644 3d/watch.pov create mode 100644 binwatch.mpd diff --git a/3d/.gitignore b/3d/.gitignore new file mode 100644 index 0000000..c64f6ef --- /dev/null +++ b/3d/.gitignore @@ -0,0 +1,4 @@ +Memory.Log +binwatch.inc +binwatch.pov +*.png diff --git a/3d/Makefile b/3d/Makefile new file mode 100644 index 0000000..fd7fce5 --- /dev/null +++ b/3d/Makefile @@ -0,0 +1,10 @@ +EAGLE3D_DIR = $(HOME)/eagle/eagle3d +FONT_DIR = /usr/share/fonts/truetype/msttcorefonts +W = 800 +H = 600 + +watch.png: watch.pov binwatch.inc + povray +P +L$(EAGLE3D_DIR)/povray +L$(FONT_DIR) +W$W +H$H $< + +binwatch.inc: binwatch.pov + sed -e 's/#local/#declare/' -e '120s/^/#if(use_file_as_inc=off) /' -e '9d' -e 's/use_file_as_inc = off/use_file_as_inc = on/' < $< > $@ diff --git a/3d/watch.pov b/3d/watch.pov new file mode 100644 index 0000000..cc2844b --- /dev/null +++ b/3d/watch.pov @@ -0,0 +1,463 @@ +// Persistence of Vision Ray Tracer Scene Description File +// File: wtchrgls.pov +// Vers: 3 +// Desc: A wrist watch lying on the ground with an hour-glass standing behind it. +// Date: June 30, 1996 +// Auth: Dan Moulding + +#include "binwatch.inc" + +#include "colors.inc" +#include "shapes.inc" +#include "glass.inc" +#include "metals.inc" +#include "stones.inc" +#include "woods.inc" + +#declare T_WATCH=texture { pigment { color P_Silver3 } finish { F_MetalE reflection 0.5 } } +#declare T_HG_WOOD=texture { T_Wood2 rotate <90,0,0> scale 5 } +#declare T_Leather=texture { normal { crackle .3 sine_wave turbulence 0.3 scale <1.5,3,1.5> phase 0.5 } pigment { color VeryDarkBrown } finish { brilliance 3 } } +#declare R_WATCH=<0,0,0>; + +camera +{ + location <-3,20,-10> + look_at <0,0,-2> +} + +light_source +{ + <-10,10,10> + color White +} + +light_source +{ + <10,15,-8> + color White +} + +light_source +{ + <15,15,15> + color White +} + +//////////////////////////////// +// Watch case +//////////////////////////////// + +// Base of Watch +cylinder +{ + <0,-.4,0>,<0,.25,0>,7 + open + texture + { + T_WATCH + } + rotate R_WATCH +} + +torus +{ + 6.5,.5 + scale <1,.5,1> + translate <0,.25,0> + texture + { + T_WATCH + } + rotate R_WATCH +} + +// Ring just on top of base +cylinder +{ + <0,0,0>,<0,.5,0>,6.75 + open + texture + { + T_WATCH + } + rotate R_WATCH +} + +torus +{ + 6.25,.5 + scale <1,.3,1> + translate <0,.5,0> + texture + { + T_WATCH + } + rotate R_WATCH +} + +// Numbered bezel +cylinder +{ + <0,.5,0>,<0,.75,0>,6.5 + open + texture + { + T_WATCH + } + rotate R_WATCH +} + +cone +{ + <0,.7,0>,6.5,<0,1,0>,5.5 + open + texture + { + T_WATCH + } + rotate R_WATCH +} + +#declare Count=0; +#while (Count<60) + #if (mod(Count,10)=0) + #if (Count!=0) + text + { + ttf "arial.ttf" + str(Count,0,0) + .05,0 + rotate <107,0,0> + translate <-.5,.95,5.7> + rotate <0,Count/60*360,0> + pigment { color Black } + rotate R_WATCH + } + #else + triangle + { + <-.2,0,.2>,<.2,0,.2>,<0,0,-.2> + rotate <15,0,0> + translate <0,.84,6.05> + pigment { color Black } + rotate R_WATCH + } + #end + #else + disc + { + <0,0,0>,y,.1 + rotate <15,0,0> + translate <0,.84,6.05> + rotate <0,Count/60*360,0> + pigment { color Black } + rotate R_WATCH + } + #end + #declare Count=Count+1.25; +#end + + +// Wrist band holders +#declare BAND_HOLDER= + union + { + difference + { + intersection + { + torus + { + 3,6 + scale <1,.31,1.05> + translate <0,-1.1,0> + } + prism + { + linear_sweep + linear_spline + -.85,.45 + 5 + <4,5>,<5.5,3>,<4.75,9>,<4,9>,<4,5> + } + texture + { + T_WATCH + } + translate <0,.2,0> + } + torus + { + 3,7 + scale <1,.28,1> + texture + { + T_WATCH + } + translate <0,-2,0> + } + } + difference + { + intersection + { + torus + { + 3,6 + scale <1,.31,1.05> + translate <0,-1.1,0> + } + prism + { + linear_sweep + linear_spline + -.85,.45 + 5 + <-4,5>,<-5.5,3>,<-4.75,9>,<-4,9>,<-4,5> + } + texture + { + T_WATCH + } + translate <0,.2,0> + } + torus + { + 3,7 + scale <1,.28,1> + texture + { + T_WATCH + } + translate <0,-2,0> + } + } + } + +object +{ + BAND_HOLDER + rotate R_WATCH +} + +object +{ + BAND_HOLDER + rotate <0,180,0> + rotate R_WATCH +} + +// Adjuster knob and housing +union +{ + union + { + cylinder + { + <0,0,0>,<0,.4,0>,.4 + } + #declare Count=0; + #while (Count<=40) + box + { + <-.01,.4,.4>,<.01,0,.45> + rotate <0,Count/40*360,0> + } + #declare Count=Count+1; + #end + sphere + { + <0,.4,0>,.4 + } + rotate <0,0,-90> + translate <7.05,0,0> + } + intersection + { + torus + { + 3,6 + scale <1,.35,1> + translate <0,-1.1,0> + } + intersection + { + prism + { + -.4,2 + 9 + <6,-2.2>,<8,-1.4>,<8,-.65>,<7,-.55>,<7,.55>,<8,.65>,<8,1.4>,<6,2.2>,<6,-2.2> + } + cylinder + { + <0,-2,0>,<0,2,0>,7.3 + } + } + } + texture + { + T_WATCH + } + rotate R_WATCH +} + + +///////////////////////////// +// Face and glass +///////////////////////////// + +// Green face +//disc +//{ +// <0,.25,0>,y,6.5 +// texture +// { +// pigment { color rgb <0,.15,0> } +// finish +// { +// specular 0.6 +// reflection 0.1 +// metallic +// } +// } +// rotate R_WATCH +//} + +// Glass +object +{ + Paraboloid_Y + rotate <180,0,0> + scale <2.733,.25,2.733> + translate <0,2,0> + texture + { + pigment { color rgbt <1,1,1,.9> } + finish + { + reflection 0.6 + specular 0.2 + diffuse 0 + phong 0.3 + phong_size 500 + } + } + rotate R_WATCH + clipped_by + { + plane + { + -y,-.75 + rotate R_WATCH + } + } +} + +////////////////////// +// Leather wrist band +////////////////////// +#declare WRIST_BAND= + union + { + prism + { + linear_sweep + linear_spline + -.5,0 + 5 + <-4,-8>,<-3.5,-25>,<3.5,-25>,<4,-8>,<-4,-8> + } + cylinder + { + <0,-4,0>,<0,4,0>,.5 + rotate <90,90,0> + translate <0,-.5,-8> + } + texture + { + T_Leather + } + } + +object +{ + WRIST_BAND + rotate R_WATCH +} + +cylinder +{ + <0,-.5,0>,<0,0,0>,3.5 + texture + { + T_Leather + } + scale <1,1,4> + translate <0,0,-25> + rotate R_WATCH +} + +object +{ + WRIST_BAND + rotate <0,180,0> + rotate R_WATCH +} + +// Silver buckle +prism +{ + linear_sweep + linear_spline + -.3,0 + 19 + <3.5,24.5>,<3.75,24.5>,<3.75,25>,<3.75,28>,<3.5,28.5>,<0,29>,<-3.5,28.5>,<-3.75,28>,<-3.75,25>,<-3.75,24.5>,<-3.5,24.5>,<-3.5,25>,<-3.5,27.5>,<-3.25,28>,<0,28.3>,<3.25,28>,<3.5,27.5>,<3.5,25>,<3.5,24.5> + texture + { + T_WATCH + } + rotate R_WATCH +} + +prism +{ + linear_sweep + linear_spline + -.3,.1 + 5 + <.5,24.5>,<.5,28.5>,<-.5,28.5>,<-.5,24.5>,<.5,24.5> + texture + { + T_WATCH + } + rotate R_WATCH +} + +////////////////// +// Floor +////////////////// + +plane +{ + y,-.8 + texture + { + T_Stone9 + } +} + +//////////////////// +// Sky +//////////////////// +sky_sphere +{ + pigment + { + color CornflowerBlue + } +} + +object{ + BINWATCH(-9.5,0,-9.5,0,0,0) + scale 0.6 +} diff --git a/binwatch.mpd b/binwatch.mpd new file mode 100644 index 0000000..66203f3 --- /dev/null +++ b/binwatch.mpd @@ -0,0 +1,21 @@ +//MPD-File +#ifndef(pack_C1) #declare global_pack_C1=yes; object {CAP_SMD_CHIP_0603(DarkWood)translate<0,0,0> rotate<0,0.000000,0>rotate<0,-0.000000,0> rotate<0,0,0> translate<9.525000,-0.000000,13.335000>translate<0,0.035000,0> }#end //SMD Capacitor 0603 C1 C0603 +#ifndef(pack_C2) #declare global_pack_C2=yes; object {CAP_SMD_CHIP_0603(DarkWood)translate<0,-0,0> rotate<0,0.000000,0>rotate<0,-270.000000,0> rotate<0,0,180> translate<12.065000,-1.500000,15.875000>translate<0,-0.035000,0> }#end //SMD Capacitor 0603 C2 C0603 +#ifndef(pack_H0) #declare global_pack_H0=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-180.000000,0> rotate<0,0,0> translate<13.970000,-0.000000,14.605000>translate<0,0.035000,0> }#end //SMD-LED im 0805 H0 CHIPLED_0805 +#ifndef(pack_H1) #declare global_pack_H1=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-0.000000,0> rotate<0,0,0> translate<12.065000,-0.000000,14.605000>translate<0,0.035000,0> }#end //SMD-LED im 0805 H1 CHIPLED_0805 +#ifndef(pack_H2) #declare global_pack_H2=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-180.000000,0> rotate<0,0,0> translate<6.985000,-0.000000,14.605000>translate<0,0.035000,0> }#end //SMD-LED im 0805 H2 CHIPLED_0805 +#ifndef(pack_H3) #declare global_pack_H3=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-0.000000,0> rotate<0,0,0> translate<5.080000,-0.000000,14.605000>translate<0,0.035000,0> }#end //SMD-LED im 0805 H3 CHIPLED_0805 +#ifndef(pack_IC2) #declare global_pack_IC2=yes; object {IC_SMD_SO8("ATTINY45V-10S","ATMEL",)translate<0,0,0> rotate<0,0.000000,0>rotate<0,-90.000000,0> rotate<0,0,0> translate<9.525000,-0.000000,9.525000>translate<0,0.035000,0> }#end //SMD IC SO8 Package IC2 ATTINY45V-10S SOIC8 +#ifndef(pack_M0) #declare global_pack_M0=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-0.000000,0> rotate<0,0,0> translate<15.875000,-0.000000,6.350000>translate<0,0.035000,0> }#end //SMD-LED im 0805 M0 CHIPLED_0805 +#ifndef(pack_M1) #declare global_pack_M1=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-180.000000,0> rotate<0,0,0> translate<13.335000,-0.000000,4.445000>translate<0,0.035000,0> }#end //SMD-LED im 0805 M1 CHIPLED_0805 +#ifndef(pack_M2) #declare global_pack_M2=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-0.000000,0> rotate<0,0,0> translate<10.795000,-0.000000,3.175000>translate<0,0.035000,0> }#end //SMD-LED im 0805 M2 CHIPLED_0805 +#ifndef(pack_M3) #declare global_pack_M3=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-180.000000,0> rotate<0,0,0> translate<8.255000,-0.000000,3.175000>translate<0,0.035000,0> }#end //SMD-LED im 0805 M3 CHIPLED_0805 +#ifndef(pack_M4) #declare global_pack_M4=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-0.000000,0> rotate<0,0,0> translate<5.715000,-0.000000,4.445000>translate<0,0.035000,0> }#end //SMD-LED im 0805 M4 CHIPLED_0805 +#ifndef(pack_M5) #declare global_pack_M5=yes; object {DIODE_SMD_LED_CHIP_0805(Red,0.500000,0.000000,)translate<0,0,0> rotate<0,90.000000,0>rotate<0,-180.000000,0> rotate<0,0,0> translate<3.175000,-0.000000,6.350000>translate<0,0.035000,0> }#end //SMD-LED im 0805 M5 CHIPLED_0805 +#ifndef(pack_R1) #declare global_pack_R1=yes; object {RES_SMD_CHIP_0603("0R0",)translate<0,0,0> rotate<0,0.000000,0>rotate<0,-270.000000,0> rotate<0,0,0> translate<3.175000,-0.000000,10.160000>translate<0,0.035000,0> }#end //SMD Resistor 0603 R1 R0603 +#ifndef(pack_R2) #declare global_pack_R2=yes; object {RES_SMD_CHIP_0603("0R0",)translate<0,0,0> rotate<0,0.000000,0>rotate<0,-90.000000,0> rotate<0,0,0> translate<15.875000,-0.000000,10.160000>translate<0,0.035000,0> }#end //SMD Resistor 0603 R2 R0603 +#ifndef(pack_R3) #declare global_pack_R3=yes; object {RES_SMD_CHIP_0603("0R0",)translate<0,0,0> rotate<0,0.000000,0>rotate<0,-180.000000,0> rotate<0,0,0> translate<9.525000,-0.000000,15.240000>translate<0,0.035000,0> }#end //SMD Resistor 0603 R3 R0603 +#ifndef(pack_R4) #declare global_pack_R4=yes; object {RES_SMD_CHIP_0603("0R0",)translate<0,0,0> rotate<0,0.000000,0>rotate<0,-180.000000,0> rotate<0,0,0> translate<9.525000,-0.000000,5.715000>translate<0,0.035000,0> }#end //SMD Resistor 0603 R4 R0603 +#ifndef(pack_R5) #declare global_pack_R5=yes; object {RES_SMD_CHIP_0603("0R0",)translate<0,-0,0> rotate<0,0.000000,0>rotate<0,-90.000000,0> rotate<0,0,180> translate<13.335000,-1.500000,13.970000>translate<0,-0.035000,0> }#end //SMD Resistor 0603 R5 R0603 +#ifndef(pack_S1) #declare global_pack_S1=yes; object {SWITCH_DIP01()translate<0,0,0> rotate<0,0.000000,0>rotate<0,-0.000000,0> rotate<0,0,0> translate<30.480000,-0.000000,8.890000>}#end //Dip switch S1 DS-01 +#ifndef(pack_SV1) #declare global_pack_SV1=yes; object {PH_1X6()translate<0,0,0> rotate<0,0.000000,0>rotate<0,-270.000000,0> rotate<0,0,0> translate<38.100000,-0.000000,10.795000>}#end //Header 2,54mm Grid 6Pin 1Row (jumper.lib) SV1 MA06-1 -- cgit v1.2.3