#version 3.5; #include "glass.inc" #declare photonson =0; #declare showbottle = 1; global_settings { max_trace_level 35 #if (photonson=1) photons { spacing 0.004 autostop 0 jitter 0 } #end } // perspective (default) camera camera { location <0.0, 0.5659, -3.30> look_at <0.0, 0.568, 0> right x*image_width/image_height angle 12 scale 0.9 } // create a regular point light source light_source { 0*x // light's position (translated below) color rgb <1,1,1> // light's color translate <-20, 40, -50> // photon block for a light source photons { refraction on reflection on //area_light } } sphere { 0, 1 texture { pigment { color rgb 1 } finish { ambient 1 diffuse 0 } } scale 1000 hollow on } // create a Surface of Revolution shape (like lathe, but faster) // File generated by SpilinEditor v1.2 // POV-Ray v3.0 syntax #declare absolut = lathe { cubic_spline 14, <0,0> <0.000000,0.007769>,// base corner <0.124383,0.007769>,// base corner <0.177689,0.023307>, <0.177689,0.54>,// beggining of closure <0.149920,0.69>, <0.087,0.74756>, <0.08,0.74756>, <0.076,0.7685>, // neck <0.053,0.798>, <0.053,0.94>, <0.069,0.95>, // cap <0.068,0.998>, <0.000000,1> hollow on scale 0.97*y } #declare bottle = difference { object { absolut } object { absolut scale <0.9,0.952,0.9>*1.013 translate <0,0.016,0> } } #declare seal = difference { height_field { png // the file type to read (tga/pot/pgm/ppm/png/sys) "\noam\graph\absolut\newseal2.png" // the file name to read smooth } scale 0.1552*y scale 0.3 rotate x*(-90) rotate y*180 rotate 37.58*x translate 0.15*x scale 0.285 } #ifdef (showbottle) difference { object { bottle material { #if (photonson=1) texture { pigment { color rgbf <0.98, 0.98, 0.98, 0.87> } finish { ambient 0.02 diffuse 0.3 reflection 0.1 specular 0.01 roughness 0.005 phong 0.1 phong_size 400 } } /* texture { pigment { color rgbt <1, 1, 1, 0.85> } finish { F_Glass6 } } */ interior { ior 1.9 fade_color Col_Red_03 } #else texture { pigment { color rgb 1 }} #end } } object { seal translate <0,0.65,-0.1654> material { #if (photonson=1) texture { pigment { image_map { png "\noam\graph\absolut\newseallight1.png" // the file name to read map_type 0 // 0=planar, 1=spherical, 2=cylindrical, 5=torus interpolate 4 // 0=none, 1=linear, 2=bilinear, 4=normalized distance transmit all 0.8 } } } interior { ior 1.9 fade_color Col_Red_03 } #else texture { pigment { color rgbt <1, 0.5, 0.5> }} #end } } // photon block for an object photons{ target refraction on reflection on collect off // ignore photons //pass_through // do not influence photons } translate 0.025*y } #end difference { plane { y, // unit surface normal, vector points "away from surface" 0 // distance from the origin in the direction of the surface normal hollow on // has an inside pigment? } plane { -z, -0.7 hollow on } plane { z, -3 hollow on } texture { pigment { color rgb 1 } finish{ diffuse 0.9 ambient 0.2 reflection 0.2 } rotate 10*y } } //*/ // cut plane on camera side too!