// Qualitative PC structure // Date: 12/09/2004 #version 3.5; #include "colors.inc" global_settings { assumed_gamma 1.0 } // Contorno e sfondo ----------------------------------------------------------- camera { location <1.5, 1.5, -1.5> direction 1.5*z right x*image_width/image_height look_at <0.5, 0.5, 0.5> } light_source { <0, 0, 0> // light's position (translated below) color rgb <1, 1, 1> // light's color translate <-30, 30, -30> } light_source { <0, 0, 0> // light's position (translated below) color rgb <1, 1, 1> // light's color translate <30, 30, -30> shadowless } // Sfondo plane { y, -2 pigment { color rgb <0,51,102>/255 } } // ----------------------------------------------------------------------------- // Textures -------------------------------------------------------------------- #declare t_green=texture {pigment{color rgb <0,1,0>} finish {ambient 0.1 diffuse 0.6 brilliance 0.5 reflection {.5}}} #declare t_silver=texture {pigment{color rgb <0.3,0.3,0.3>} finish {ambient 0.1 diffuse 0.6 brilliance 1.0 reflection {1.0}}} #declare t_gold=texture {pigment{color rgb <1,1,0>} finish {ambient 0.1 diffuse 0.6 brilliance 1.0 reflection {1.0}}} #declare t_black=pigment{color rgb <0.1,0.1,0.1>} #declare t_black_trasp=pigment{color rgbf <0.1,0.1,0.1, 4>} #declare t_grey=pigment{color rgb <0.7,0.7,0.7>} #declare t_darkgrey=pigment{color rgb <0.5,0.5,0.5>} // ----------------------------------------------------------------------------- // Componenti ------------------------------------------------------------------ // Cabinet #declare cabinet=difference{object{box {0,1} scale <0.5,1,1>} sphere { <0.5, .8, 0>, 0.4} object{box {0,0.9} translate <0.05,0.05,0.05> scale <0.5,1,1>}} // Matherboard #declare mb=object{box {0,1} scale <0.05,0.99,0.99>} #declare MB=object{mb texture {t_green}} // CPU #declare cpu=object{box {0,0.1}} #declare CPU=object{cpu texture {t_black}} // RAM #declare ram=object{box {0,0.2} scale <0.1,1,0.1>} #declare RAM=union { object{ram texture {t_black} translate <0.05,0.1,0.8>} object{ram texture {t_black} translate <0.05,0.1,0.85>} } // HD #declare hddisk=object {disc { <0, 0, 0>, y, 1.0, 0.2 } scale <0.5,1,0.5> translate <0.5,0.1,0.5>} #declare hdbox_a=difference{object{box {0,1} scale <1,0.2,1>} sphere { <0.8, 0.1, 0>, 0.4}} #declare hdbox_b=intersection{object{box {0,1} scale <1,0.2,1>} sphere { <0.8, 0.1, 0>, 0.4}} #declare HD=union { object {hddisk texture {t_silver} translate <0,0.05,0>} object {hddisk texture {t_silver} translate <0,0,0>} object {hddisk texture {t_silver} translate <0,-0.05,0>} object {hdbox_a texture {t_black}} object {hdbox_b texture {t_black_trasp}} } // CD #declare cddisk=object {disc { <0, 0, 0>, y, 1.0, 0.2 } scale <0.5,1,0.5> translate <0.5,0.1,0>} #declare cdbox=object{box {0,1} scale <1,0.2,1>} #declare CD=union { object {cddisk texture {t_gold}} object {cdbox texture {t_darkgrey}} } // ----------------------------------------------------------------------------- // Output ---------------------------------------------------------------------- // Cabinet object {cabinet texture {t_grey}} // Matherboard object {MB} // CPU object {CPU translate <0.05,0.2,0.45>} // RAM object {RAM} // HD object {HD scale 0.3 translate <0.05,0.6,0.05>} // CD object {CD scale 0.4 translate <0.05,0.8,0>} // -----------------------------------------------------------------------------