#include "colors.inc" #include "metals.inc" #include "glass.inc" #include "skies.inc" #include "textures.inc" #include "mytextures.inc" #include "myname.inc" #include"stones1.inc" sky_sphere { pigment { bozo color_map { [0.0 White*3] [0.2 Black] [1.0 Black] } scale .006 } } camera { location <0,6, -12> look_at <-.5,-1,0> } light_source { <500, 500, -1000> White } #declare bowl = //Give the object a name difference { sphere {<0, 0, 0> 1 } sphere {<0, 0, 0> 0.95 } box {<-2, 0, 2>, <2, 1, -2> } } #declare mugcover = cylinder { <0, 0, 0>, <0, 1, 0>, 1 } #declare mugopen = cylinder { <0,0.3,0>, <0,9,0>, 3.7 } #declare mugtop = torus { 3.85, 0.15 translate <0, 8, 0> } #declare mugbase = cone { <0, 0, 0>, 3.9 <0, 0.1, 0>, 4 } #declare main_mug_cover = difference { object { mugcover scale <4, 8, 4> rotate <0, -45, 0> } object { mugopen } } #declare mugbody = union { object { main_mug_cover translate <0, 0.1, 0> } object { mugbase } object { mugtop } } #declare mughandle = difference { torus { 1, 0.1 rotate <90, 0, 0> scale <2, 2.5, 8> translate <4, 4, 0> } object { mugopen } } #declare mug = union { object { mugbody } object { mughandle } } #declare mugcoffee = cylinder { <0, 0.4, 0>, <0, 6.8, 0>, 3.7 pigment { colour Brown * 0.5 } normal { ripples 0.6 } finish { Glossy } } #declare mug_with_coffee = union { object { mugbody } object { mughandle } object { mugcoffee } } #declare plate = //declare object merge{ object { bowl translate <-.65, .65, 3> } scale <2, 1, 0> } box { <-5, -3, -8>, < 5, -2, 8> texture { Lightning2 scale 6 } rotate y*80 } box { <-3.5, 1, 4.1>, <3.5, 3, 6> texture { T_Stone3 } } object{ mug texture { Aluminum } scale .2 translate <-4.5, 3, -.1> rotate x*-90 rotate y*10 } object{ bowl texture {Glass2 } scale 1.8 translate <4, .1, 2> } object{ bowl texture { pigment {White} finish { Shiny } } scale 1.3 translate <3.5, 1, -5> } object{ mug_with_coffee texture { pigment {DarkOrange} } scale .2 translate <2, -1, -1> rotate y*170 } object{ mug texture { pigment {Red} } scale .2 translate <.2, -1, 1.1> rotate y*10 } object{ bowl pigment{ image_map { jpeg "spaceship.jpeg" } } scale <2, 0.6, 2> translate <.001, .3, -4> } cylinder { <0, 1, 0>, <0, 1.2, 0>, 1.3 texture { DMFWood1 } translate <-5, -3.1, -5> } object{ mug_with_coffee texture { pigment {White} } scale .2 translate <7.2, -1.1, 1.5> rotate y*140 }