// Aula 6 de Exercicios - Criacao Porta Lapis // ************ DECLARACOES INICIAIS - FONTE DE LUZ + CAMERA ************ #include "colors.inc" #include "textures.inc" background{ color rgb < 1.00, 1.00, 1.00 > } light_source { < 4.00, 10.00, 50.00 > color rgb < 1.00, 1.00, 1.00 > } camera { location < 8.00, 4.00, 2.00 > right < +1.00, 0.00, 0.00 > up < 0.00, 0.00, 0.90 > sky < 0.00, 0.00, 1.00 > look_at < 0.00, 0.00, 0.00 > } // ******************** CORES ************************* #declare Preto = texture { pigment { color rgb < 0.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare Verde = texture { pigment { color rgb < 0.00, 1.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare Azul = texture { pigment { color rgb < 0.00, 0.00, 1.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } #declare Vermelho = texture { pigment { color rgb < 1.00, 0.00, 0.00 > } finish { diffuse 0.5 specular 0.5 roughness 0.005 ambient 0.1 } } // *************** DECLARACAO DOS COMPONENTES DO PORTA LAPIS************* //Rodinha #declare rodinha = sphere { < +2.00,+1.00,-2.20 >, 0.25 texture { Azul } } // Corpo #declare suportelapis = box { < +2.00, 0.00, -2.00 >, < +0.75, +1.00, +3.00 > texture { Vermelho } } #declare suporteclipes = box { < +1.85, +1.5, -1.70 >, < +0.75, +1.00, +0.55 > texture { Verde } } #declare suporteborracha = box { < +1.85, -1.5, -1.70 >, < +0.75, +0.50, +0.55 > texture { Verde}} // **************** CONSTITUICAO DO PORTA LAPIS *************** object{rodinha} object{rodinha translate <-1.25,0,0>} object {rodinha translate <0.00,-1.00,0.00>} object {rodinha translate <-1.25,-1.00,0.00>} object { suportelapis } object { suporteclipes } object { suporteborracha } //object {helice_maior // scale <0.00,9.50,0.00>}