/* * quadric_test2.pov */ #include "colors.inc" // if you change these, you may need to up the photon count! // focal distance from vertex #declare foc = .5; // prism width over 2 #declare pw = 2; global_settings { photons { count 60000 autostop 0 } } object { plane { <0, 1, 0> 0 pigment { checker color rgb <.4,.4,.4>, color rgb <.2,.2,.2> } } translate <.5, 0, -.5> } // this sphere marks the focal point /*sphere { <0, 0, 0> .05 pigment {color Red} }*/ object { quadric { <1,0,0>, <0,0,0>, <0,0,4*foc>, 0 // use this to swap inside and outside of a quadratic //inverse pigment { Silver } finish { ambient 0 diffuse 0 reflection .5 specular 1 roughness 0.0005 } photons { target reflection on } } clipped_by { box { <-pw, 0, .2>, < pw, 1, -pw*pw/(4*foc)> } } bounded_by { clipped_by } translate <0,0,foc> } camera { location <-1, 4, -2.5> look_at <0, 0, 0> } light_source { <0, 8, -6.5> color White } // temporary sphere to help with placement /*sphere { .05 pigment {color Red} }*/