// Last edited on 2019-07-17 14:10:54 by stolfilocal // Processed by remove-cam-lights #include "colors.inc" #include "shapes.inc" #include "camlight.inc" #include "eixos.inc" #declare component_color_red = texture { pigment { color rgb <0.7, 0.12, 0.12> } finish{ diffuse 0.8 ambient 0.1 specular 0.4 roughness 0.5 } } #declare component_color_green = texture { pigment { color rgb <0.7, 0.7, 0.12> } finish{ diffuse 0.8 ambient 0.1 specular 0.4 roughness 0.5 } } #macro paredes() object { union { box { <0,0,0> <20,20,1> texture { component_color_red } } box { <0,0,0> <1,20,20> texture { component_color_red } } box { <0,0,0> <20,1,20> texture { component_color_red } } } } #end #macro prisma(s) object { prism { 0 15 5 <5,5>, <-5,5>, <-4, -4>, <5, -5>, <2, 0> } scale rotate <90, 0, 90> } #end #macro projetor() union { light_source { <0,0,4> 1 } difference { object { prisma(1) texture { component_color_green } } object { prisma(0.8) translate <0, 0, -0.1> texture { component_color_green } } object { text { ttf "verdana.ttf" "OBA" 1 0 texture { component_color_green } } rotate <180, 0, 0> scale <-3, -3, 100> translate <3.5, -3, 50> } } } #end background { color rgb <0.4, 0.4, 0.4> } object { paredes() scale 2 } object { projetor() scale(0.2) rotate <90, 0, 0> rotate <30, 0, 15> translate <10, 40, 30> } #declare center = <0.00, 0.00, 3.00>; #declare scene_radius = 50.0; #declare camera_direction = <5, 5, 3>; #declare camera_distance = 5 * scene_radius; #declare light_intensity = 0.1; camlight( center, scene_radius, camera_direction, camera_distance, z, light_intensity )