// Last edited on 2009-07-22 19:55:51 by stolfilocal
// Processed by remove-cam-lights

#include "colors.inc"

background{ color rgb < 0.75, 0.80, 0.85 > }

global_settings { max_trace_level 10 }

#declare tinta = 
  texture {
    pigment { color rgb < 1.00, 1.00, 0.80 > }
    finish { diffuse 0.1 specular 0.1 ambient 0.1 reflection 0.7}
}

plane{
   y, 0
   texture { pigment { checker rgb <1,1,1>, rgb <0.5,0.5,0.5> rotate 17*y }
     finish { diffuse 0.5 ambient 0.5 }
   }
}

#declare bola_cristal = 
merge{
 cylinder{
    < 0.0, -0.61, 0.0 >, < 0.0, 0.61, 0.0 >, 2.0
 }

 cone{
    < 0.0, -0.6, 0.0 >, 2.0, <0.0, -2.0, 0.0 >, 1.4
 }

 cone{
    < 0.0, 0.6, 0.0 >, 2.0, <0.0, 2.0, 0.0 >, 1.4
 }
}

#declare pedestal =
union{
  box {
    < -2.00, -0.50, -2.00 >, < 2.00, 0.50, 2.00 >
    translate < 0.00, -2.50, 0.00 >
  }
  cylinder{
    < 0.00, -3.00, 0.00 >, < 0.00, 3.00, 0.00 >, 0.2
    translate < -1.8, -5.01, -1.8 >
  }
  cylinder{
    < 0.00, -3.00, 0.00 >, < 0.00, 3.00, 0.00 >, 0.2
    translate < 1.8, -5.01, -1.8 >
  }
  cylinder{
    < 0.00, -3.00, 0.00 >, < 0.00, 3.00, 0.00 >, 0.2
    translate < -1.8, -5.01, 1.8 >
  }
  cylinder{
    < 0.00, -3.00, 0.00 >, < 0.00, 3.00, 0.00 >, 0.2
    translate < 1.8, -5.01, 1.8 >
  }
}

union{ 
    
    object {
       bola_cristal 
       translate < 0.00, -0.001, 0.00 >
       texture{
         pigment{ color rgb < 0.3,0.9,0.9 > filter 0.8}
         finish{ ambient 0.1 diffuse 0.1 }                                        
       }     
       interior{ior 1.2}
    }
    
    object { 
      pedestal 
      texture { tinta }
    }
    translate < 0.00, 8.00, 0.00 >
}

// Original camera parameters:
// #local cam_ctr = <0.00,4.00,0.00>
// #local cam_vec = (<8.00,15.00,-8.00>-<0.00,4.00,0.00>)
// #local cam_sky = y

#include "camlight.inc"
camlight(<0.00,4.00,0.00>,<10,7,5>,15.0,y,1.1)