// Last edited on 2009-10-10 18:53:44 by stolfilocal // Processed by remove-cam-lights #macro eixo(ponta,cor,nome) union{ sphere{ <0,0,0>, 0.02 } cylinder{ <0,0,0>, 0.91*ponta, 0.02 } cone{ 0.90*ponta, 0.06, ponta, 0.00 } texture{ pigment{ color rgb cor } finish{ ambient 0.5 diffuse 0.5 } } } #end #macro eixos(tamanho) union{ object{ eixo( , <1.0,0.2,0.2>, "X") } object{ eixo( <0,tamanho,0>, <0.0,0.8,0.0>, "Y") } object{ eixo( <0,0,tamanho>, <0.3,0.3,1.0>, "Z") } } #end background{ color rgb < 0.75, 0.80, 0.85 > } #declare tx_plastico = texture{ pigment{ color rgb < 0.10, 0.80, 1.00 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_branco = texture{ pigment{ color rgb < 1.0, 1.0, 1.0 > } finish{ diffuse 0.8 ambient 0.1 specular 0.5 roughness 0.005 } } #declare tx_fosca = texture{ pigment{ color rgb < 1.00, 0.80, 0.10 > } finish{ diffuse 0.9 ambient 0.1 } } #declare tx_espelho = texture{ pigment{ color rgb < 1.00, 0.90, 0.70 > } finish{ diffuse 0.1 reflection 0.8*< 1.00, 0.90, 0.70 > ambient 0.1 } } #declare tx_vidro = texture{ pigment{ color rgb < 0.97, 0.98, 1.00 > filter 0.70 } finish{ diffuse 0.03 reflection 0.25 ambient 0.02 specular 0.25 roughness 0.005 } } #declare tx_janela = texture{ pigment{ image_map { jpeg "carro.jpg" } scale < 2.0,2.0,1> } finish{ ambient 1.0 } } #declare tx_quadro = texture{ pigment{ image_map { jpeg "carro.jpg" } scale < 2.0,2.0,1> } finish{ diffuse 0.8 ambient 0.02 } } #declare raio = 3.300; #declare pe_1 = cylinder{ < 1.0, 0, 0 >, < 1.0, 0, 1.0 >, 0.3 texture{ tx_fosca } } #declare pe_2 = cylinder{ < 1.0, 1.0, 0 >, < 1.0, 1.0, 1.0 >, 0.3 texture{ tx_fosca } } #declare pe_3 = cylinder{ < 1.0, -1.0, 0 >, < 1.0, -1.0, 1.0 >, 0.3texture{ tx_fosca } } #declare pe_4 = cylinder{ < 0, -1.0, 0 >, < 0, -1.0, 1.0 >, 0.3 texture{ tx_fosca } } #declare base_assento = box{ < 1.0 , 0, 1.0 >, < 0, -1.0, 0.6 > texture { tx_fosca } } #declare Cadeiras = union{ #declare J = 0; #while ( J < 4 ) #declare I = 0; #while ( I < 8 ) #if ( I=5 & J=7 ) box{ < 0.8 , -3.4+J*0.6 , -2.0+I*0.6 >, < 1.0, -3.2+J*0.6 , -1.7+I*0.6 > texture { tx_plastico } } #else cylinder{ < 1.8-(J*2.6), -1.8+(I*0.8) , 0+(J*0.3) >, < 1.8-(J*2.6), -1.8+(I*0.8) , 2.0+(J*0.6) >, 0.2 scale 1.0 texture { tx_branco } } #end #declare I = I + 1; #end #declare J = J + 1; #end } #declare Piso = box{ < 2.0, -2.0 , 0>, < 0 , 3.0 , 0.3> texture { tx_espelho } } #declare Piso_sala = union { #declare I = 0; #while ( I < 4 ) box{ < 2.0-(I*1.8), -2.0 , 0+(I*0.3) >, < 0-(I*1.8) , 3.0 , 0.3+(I*0.3) > scale 1.5 texture { tx_fosca } } #declare I = I + 1; #end } #declare Placa = text { ttf "arial" "Laboratorio UFMS" 0.3, 0 rotate 90*x rotate 90*z texture { tx_branco } } #declare Parede = box{ < 2.0, -3.4 , 0 >, < -6.8 , -3.6 , 6.0 > texture { tx_fosca } } #declare Janela = box{ < -3.0, -3.4 , 0 >, < -6.8 , -3.6 , 6.0 > texture { tx_janela } } #declare Quadro = box{ < -5.0, -3.4 , 0 >, < -6.8 , -3.6 , 6.0 > texture { tx_quadro } } union { object{ Piso_sala } object{ Cadeiras } object{ Placa translate < 4.0,-2.0,5.0 > } object{ Parede } object{ Quadro translate < 0, 0.1, 0 > } } // Original camera parameters: // #local cam_ctr = <0.00,0.00,2.00> // #local cam_vec = ((1.4* <18.00,7.00,3.50>)-<0.00,0.00,2.00>) // #local cam_sky = z #include "camlight.inc" camlight(<-2.00,0.00,2.00>,9.5,<10,10,4>,23.0,z,1.2)