#ifndef (includes) #declare includes = 1; #include "colors.inc" #include "textures.inc" #end #include "lightbulb.pov" #declare Wrought_Iron = // for lamp legs material // Wrought_Iron { texture { pigment { color rgb <0.137, 0.137, 0.137> } finish { ambient 0.3 diffuse 0.035967 brilliance 0.977333 phong 0.151067 phong_size 5.96 specular 0.661867 roughness 0.1729 metallic 1.0 } } } #declare DefTechBP2004 = union { box { <0, 1.99, 0> <7.5, 39.01, 12> pigment {red .04 blue .04 green .04 } } box { <0,1,0> <7.5, 2, 12> pigment {red .04 blue .04 green .04 } finish { diffuse 0.7 reflection 0.4 brilliance 8 roughness 0.05 } } box { <0,39,0> <7.5, 40, 12> pigment {red .04 blue .04 green .04 } finish { diffuse 0.7 reflection 0.4 brilliance 8 roughness 0.05 } } } #declare IkeaBeachCoffeeTable = // Check measurements union { union { box { <0, 0, 0> <1.5, 16, 1.5>} // leg 1 box { <0, 0, 0> <1.5, 16, 1.5> // leg 2 translate <48, 0, 0>} box { <0, 0, 0> <1.5, 16, 1.5> // leg 3 translate <0, 0, 29.5>} box { <0, 0, 0> <1.5, 16, 1.5> // leg 4 translate <48, 0, 29.5>} box { <0, 7, 1.5> <49.5, 7.8, 29.5>} //shelf box { <1.55, 14.5, 0> <47.95, 16, 1.5> } //crossbar 1-2 box { <1.55, 14.5, 0> <47.95, 16, 1.5> //crossbar 3-4 translate <0, 0, 29.5>} box { <0, 14.5, 0.01> <1.5, 16, 29.49>} // crossbar 4-1 box { <0, 14.5, 0.01> <1.5, 16, 29.49> // crossbar 2-3 translate <48, 0, 0>} texture {Yellow_Pine scale <24, 24, 24> rotate <90, 0, 0>} } box { <0, 0, 0> <49.5, .25, 31> translate < 0, 16.1, 0> texture { Glass3 } } } #declare lrLamp_curl = prism { cubic_spline 0, // sweep the following shape from here ... .4, // ... up through here 23, // the number of points making up the shape ... < 1.75, 1>, // point#1 - inner point of lower swirl < 1.95, 1.8>, // point#2 - upper/inner corner of lower swirl < 2.25, 2.25>, // point#3 - upper edge of lower swirl < 3, 1>, // point#4 - outer edge of lower swirl < 1.75, 0>, // point#5 - foot < 0, 2>, // point#6 - narrow point bottom of climb < 1.375, 7.5> // point#7 - mid-climb < 0, 12.5>, // point#8 - narrow point top of climb < 1, 13>, // point#9 - top of upper swirl < 2, 12.6>, // point#10 - outer point of upper swirl < 1.91, 12.51>, // point#11 /10 - These points match up as the < 1, 12.875>, // point#12 /9 - outside of the whole form < .125, 12> // point#13 /8 - < 1.5, 7.5>, // point#14 /7 - .125 is the width < .125, 2>, // point#15 /6 - When the width is diagonal < 1.75, .125>, // point#16 /5 - (pts. 11, 19) .125/sqrt(2) = < 2.875, 1>, // point#17 /4 - .0088 --> .09 < 2.25, 2.125>, // point#18 /3 < 1.86, 1.71> // point#19 /2 < 1.875, 1> // point#20 /1 < 1.75, 1>, // Same as 1st to match up cubic spline < 1.95, 1.8> // Same as 2nd < 2.25, 2.25> // Same as 3rd material{Wrought_Iron} rotate <270, 0, 0> translate <.15, 0, 0> } #declare lrLamp = union { prism { // lamp shade conic_sweep linear_spline .4, // height 1 1, // height 2 4, // the number of points making up the shape... <5, 5>, <-5, 5>, <-5, -5>, <5,-5> //<4.9,4.9>, <-4.9, 4.9>, <-4.9, -4.9>, <4.9, -4.9> open rotate <180, 0, 0> scale <1, 12, 1> translate <0, 25, 0> texture { pigment { red 1 green 1 blue .9 filter .02} finish { diffuse .8 roughness 80 ambient 0.5 } } } // chords around top and bottom of shade union { cylinder { <5, 0, 5> <-5, 0, 5> .1 } cylinder { <-5, 0, 5> <-5, 0, -5> .1 } cylinder { <-5, 0, -5> <5, 0, -5> .1 } cylinder { <5, 0, -5> <5, 0, 5> .1 } cylinder { <2, 7.2, 2> <-2, 7.2, 2> .1 } cylinder { <-2, 7.2, 2> <-2, 7.2, -2> .1 } cylinder { <-2, 7.2, -2> <2, 7.2, -2> .1 } cylinder { <2, 7.2, -2> <2, 7.2, 2> .1 } texture { pigment { rgb <.8, .8, .75>} finish { diffuse .8 roughness 80 ambient 0.8 } } translate <0 13 0> } //light_source { <0, 16, -5> rgb 1} //light_source { <0, 16, 5> rgb 1} //light_source { <5, 16, 0> rgb 1} //light_source { <-5,16, 0> rgb 1} #declare lrLampOn = 1; #if (lrLampOn = 1) object {LB scale <.7, .7, .7> translate <0, 14.5, 0> } light_source { <0, 16, 5> color rgb .07 area_light <2,0,0><0,0,2>,2,2 adaptive 1 jitter rotate <60, 0, 0> } light_source { <0, 16, -5> color rgb .07 area_light <2,0,0><0,0,2>,2,2 adaptive 1 jitter rotate <-60, 0, 0> } light_source { <5, 16, 0> color rgb .07 area_light <2,0,0><0,0,2>,2,2 adaptive 1 jitter rotate <0, 0, -60> } light_source { <-5, 16, 0> color rgb .07 area_light <2,0,0><0,0,2>,2,2 adaptive 1 jitter rotate <0, 0, 60> } #end cylinder { <0, 2, 0> <0, 16, 0> .15 material {Wrought_Iron} } object {lrLamp_curl rotate<0 45 0>} object {lrLamp_curl rotate<0 135 0>} object {lrLamp_curl rotate<0 225 0>} object {lrLamp_curl rotate<0 315 0>} torus { .525, .25 // lower ring scale <1, 2, 1> translate <0, 2, 0> material {Wrought_Iron} } torus { .525, .25 // upper ring scale <1, 2, 1> translate <0, 12.5, 0> material {Wrought_Iron} } } #declare lrBookShelf = union { box {<.1, 3.5, 0> <31.4, 45.1, .25> translate <0, 0, 11.25>} // backing box {<0, 0, 0> <.75, 45, 11.25>} // left side box {<0, 0, 0> <.75, 45, 11.25> translate <30.75, 0, 0>} // right side box {<.8, 0, .1> <30.70, .75, 11.24> translate <0, 4, 0>} // bottom shelf box {<.8, 0, .1> <30.70, .75, 11.24> translate <0, 20, 0>} // second shelf box {<.8, 0, .1> <30.70, .75, 11.24> translate <0, 32, 0>} // third shelf box {<.8, 0, .1> <30.70, .75, 11.24> translate <0, 44.25, 0>} // top shelf texture {Yellow_Pine finish { ambient .05} scale <24, 24, 24> rotate <90, 90, 0>} } #declare Erwitt = // Elliott Erwitt Photograph (framed) union { difference { box { <0, 0, 0> <34.5, 26.5, 1>} box { <2, 2, -1> <32.5, 24.5, 2>} texture { pigment { Black } finish { diffuse 1 } } } box {< 1.9, 1.9, .25> < 32.6, 24.6, .35> pigment { image_map { sys "C:\My Documents\Pov\1443_files\ee924.bmp"} scale < 30.5, 22.5, 1> translate < 1.9, 1.9, 0> } finish { ambient 0.15} } box {<1.9, 1.9, .2> <32.6, 24.6, .25> texture {Glass2 } } } #declare TomClancy = union { box {<0,0,0><2.25, 9.25, 6.5>} cylinder {< 0, 0, 0> <0, 9.25, 0> 1.125 scale<.12, 1, 1> rotate <0, 90, 0> translate <-.09, 0, .5625> } } #declare IkeaGreenPlaid = texture { pigment { quilted color_map { [ 0.0 rgb <.1, 1, .2>] [ 0.5 rgb <1, 1, 1>] } scale <.5, .5, .5> } } #declare Bello_Lshape = union { box {<0, 0, 17.5> <7/8, 27.75, 21>} // upright box {<0, 0, 0> <7/8, 3.5, 21>} } #declare Bello_tube = cylinder { <0, 0, 0> <1, 0, 0> .75} #declare Belloggetti = union { union { object {Bello_Lshape} // left side object {Bello_Lshape translate<37.125, 0, 0>} // right side object {Bello_tube scale <37.5, 1, 1> translate <.25, 1.75, 1.75>} // front bottom object {Bello_tube scale <37.5, 1, 1> translate <.25, 1.75, 19.25>} // back bottom object {Bello_tube scale <36, 1, 1> translate <1, 26.125, 1.75>} // front top box { <7/8, 25.25, 0> <1+3/8, 27.75, 21> } // left arm box { <36.625, 25.25, 0> < 37.125, 27.75, 21>} // right arm box { <7/8, 25.25, 20.5> <37.125, 27.75, 21>} cylinder {<0, 26 ,2.5> < 7/8, 26, 2.5> 1 } // support cap left cylinder {<37.125, 26, 2.5> <38, 26, 2.5> 1} // support cap right cylinder {<7/16, 3, 13.5> <7/16, 26, 2.5> .75/2} // left support cylinder {<38-7/16, 3, 13.5> <38-7/16, 26, 2.5> .75/2 } // right support box { < 18, 0, 21> < 20, 27.75, 23> } // rear middle support column texture { pigment { rgb 0.05} finish { metallic ambient 0.2 diffuse 0.7 brilliance 3 //reflection 0.25 phong 0.75 phong_size 80 } } } union { // rubber ball supports sphere { <19+7, 26.625+.75, 1.75> .75 } sphere { <19-7, 26.625+.75, 1.75> .75 } texture { pigment { rgb 0.10} finish { ambient 0.2 diffuse 0.7 } } } union { // glass shelves merge { box { < 0, 0, 0> < 38, 2/8, 21.5>} //cylinder { <0,1/8,0><38,1/8,0> 1/8} translate <0,28,0> } merge { box { <0, 0, 0> <36.175, 2/8, 14.5>} //cylinder { <0, 1/8, 0> <36.175, 1/8, 0> 1/8 } translate <9/8, 17.75, 4> } merge { box { <0, 0, 0> <36.175, 2/8, 16>} //cylinder { <0, 1/8, 0> <36.175, 1/8, 0> 1/8 } translate <9/8, 10., 2.5> } merge { box { <0, 0, 0> <36.175, 2/8, 18.75> } //cylinder { <0, 1/8, 0> <36.175, 1/8, 0> 1/8} translate <9/8, 2.26, .75> } texture { pigment { rgbf <0.30, .40, 0.34, 0.9> } finish { ambient 0.1 diffuse 0.1 reflection 0.6 refraction 0.9 ior 1.8 specular 0.8 roughness 0.0003 phong 1 phong_size 400 } } } scale <40/38, 1, 1> } //////////////////////////////////////////////////////////////// #declare Black_Brushed_Aluminum = finish { metallic phong .8 reflection 0.0 specular .2 phong_size .01 } #declare Denon_AVR_3300 = union { difference { box {<0, 9/16, 0> <17.125, 6.75, 14.75>} // Main box box {<-.1, .5, 6/16> <17.25, .75, 15>} // underside cut (front overhang) box {<-.1, 3, -.1> <17.25, 3.125, .125>} // center groove flat box {<-.1, 3, -.1> <17.25, 3.125, .125> // center groove diagonal translate <0,0, -.125> rotate <-45, 0, 0> translate <0, 0, .125> } box {<-.1, 0, -.125> <17.25, .9, 0> // upper edge bevel //translate <0, 0, -.125> rotate <15, 0, 0> translate <0, 6.25, 0> } box {<-.1, 6/16, -.5> <17.125, 15/16, 0> // lower edge bevel translate <0, -15/16, 0> rotate <-30, 0, 0> translate <0, 15/16, 0> } box {<3+7/8, 3+7/8, -.1> < 13.75, 5.5, .5> // main display cutout texture { pigment {image_map { sys "C:\My Documents\Pov\1443_files\denon_display.bmp"} scale < 9.975, 1.625, 1> translate <3+7/8, 3+7/8, 0> } finish { reflection 0.04 } } } cylinder { < 2.25, 4.75, -.1> < 2.25, 4.75, .25> 5/8} // Function knob cutout cylinder { < 15.125, 4+5/8, -.1> < 15.125, 4+5/8, .25> 1} // Volume knob cutout cylinder { < 15, 2, -.1> < 15, 2, .25> 7/16} // Mode knob cutout texture { pigment {image_map { sys "C:\My Documents\Pov\1443_files\denon_front.bmp"} scale < 17.125, 6, 1> translate <0, .75, 0> } //finish {Black_Brushed_Aluminum } normal { bumps -0.5 scale <.1, 0.001, 0.001> } } } // end main block difference union { cylinder { <2.25, 4.75, -.7> < 2.25, 4.75, .3> 9/16 } // Function knob cylinder { <15.125, 4+5/8, -.7> <15.125, 4+5/8, .3> 15/16} // Volume knob cylinder { < 15, 2, -.7> < 15, 2, .25> 3/8} // Mode knob texture { pigment { color rgb 0.025} normal { bumps -0.5 scale <.1, 0.001, 0.001> } } } cylinder { <1.75, 0, 2+3/8> <1.75, 1/8 , 2+3/8> 1.125 // left foot texture {Polished_Brass} } cylinder { <1.75, 1/8, 2+3/8> <1.75, .75, 2+3/8> 1.125} cylinder { <15.5, 0, 2+3/8> <15.5, 1/8, 2+3/8> 1.125 // right foot texture {Polished_Brass} } cylinder { <15.5, 1/8, 2+3/8> <15.5, .75, 2+3/8> 1.125} box { <3+7/8, 3+7/8, 0> < 13.75, 5.5, .125> // main display texture { pigment { rgbf <.9, .9, 1 , .95> } finish { ambient 0 diffuse 0 reflection 0.05 refraction 0.85 ior 1.5 phong 0.3 phong_size 60 } } } } /* texture { TEXTURE_IDENTIFIER pigment { PIGMENT_IDENTIFIER PATTERN_TYPE PIGMENT_MODIFIERS TRANSFORMATIONS... } normal { NORMAL_IDENTIFIER NORMAL_PATTERN_TYPE NORMAL_MODIFIERS TRANSFORMATIONS... } finish { FINISH_IDENTIFIER [ ambient AMBIENT | ] [ diffuse DIFFUSE ] [ brilliance BRILLIANCE ] [ phong PHONG ] [ phong_size PHONG_SIZE ] [ specular SPECULAR ] [ roughness ROUGHNESS ] [ metallic [ METALLIC ] ] [ reflection REFLECTION | ] [ refraction REFRACTION ] [ ior IOR ] [ caustics CAUSTICS ] [ fade_distance FADE_DISTANCE ] [ fade_power FADE_POWER ] [ irid { thickness THICKNESS turbulence TURBULENCE } ] [ crand CRAND ] } TRANSFORMATIONS } */