// Persistence of Vision Ray Tracer Scene Description File // File:ashtray.inc // Vers: 3.1 // Desc:This is the CSG ashtray to be included in gambler scene. // Date:5/29/99 // Auth:ArfGrafix // ==== Standard POV-Ray Includes ==== #include "colors.inc" // Standard Color definitions #include "textures.inc" // Standard Texture definitions // create a regular point light source light_source { 0*x // light's position (translated below) color red 1.0 green 1.0 blue 1.0 // light's color translate <-20, 40, -20> } background { Gray } camera { location <0.0 , 4.0 ,-8> look_at <0.0 , 0.0 , 1.5> } #declare outer_cylinder = cylinder { 0*y, 1*y, 3 pigment { color rgb <0,1,0> } finish { phong .8 phong_size 120 } } #declare inner_cylinder = cylinder { 0.2*y, 1*y, 2.8 open pigment { color rgb <0,1,0> } finish { phong .8 phong_size 120 } } #declare ashtray = difference { object { inner_cylinder } object { outer_cylinder } } #declare slotter = cylinder {0*x, 1*x, .5 pigment { color rgbt <1,1,0,.65> } finish { phong .8 phong_size 120 } translate <-3.25,1,0> } #declare slotter_1 = #declare Count = 0; #while ( Count < 3 ) difference { object { ashtray } object { slotter rotate y*120*Count } } #declare Count = Count + 1; #end /* #declare slotted_ashtray = difference { object { slotter_1 } } */ object { slotter_1 }