POV manuals etc on the web seem to not cover this problem.
Am beginner and having problems with lighting. The second light source does not work on the frame as-is. If i move it from the center of the frame along the z axis, i can see the reflection of the source when it is inside and it looks OK. But once beyond or outside the frame along the z axis, *paff*. Replacing the frame with spheres show that the lightsource is indeed where i expected and works OK. Also placing a fair-sized sphere in the center of the frame shows that the lightsource does indeed illuminate that sphere correctly - BUT no light on the right end of the frame! HELP! ((all of the other light sources seem to work OK))
// Persistence Of Vision raytracer version 3.5 sample file. // "sample" by R. Baer // -w320 -h240 // -w800 -h600 +a0.3
#include "colors.inc" //#include "camera-context.inc" //common file containing object definitions for the camera demos
camera { //perspective orthographic location look_at angle 40 }
// begin basic frame; center at -5.5, 0.75, 22.25 #declare Ubar=union { // U rail..left corner bottom at 0,0,0; size in inches box {, pigment {Gray80}} // "web" box {, pigment {Gray80}} // bottom part box {, pigment {Gray80}} // top part } object {Ubar translate } object {Ubar rotate translate } #declare Ubar=union { box {, pigment {Gray80}} // "web" box {, pigment {Gray80}} // bottom part box {, pigment {Gray80}} // top part } object {Ubar rotate translate } object {Ubar rotate translate } // Note had to do lengths the hard way (ugh)
sphere {,8 pigment {SteelBlue} finish {phong .2 reflection {.3}}} // sphere shows that the 2nd light source _is_ to the right of the frame..
sky_sphere {pigment {rgb }} light_source { White*1.2} // near middle of box frame, up large amount //light_source {< 200, 0.75, 22.25> White*1.2} // in front middle, away a lot //light_source { White*1.2} // left middle, away a lot light_source { White*3.2} // right middle, away a lot ????? // with no sphere, at z=20 to 40 see light source results inside frame and looks good. // But..at z=50,what is seen is not expected..should see right side illuminated.
//light_source { White*1.2} // near middle of box frame, down large amount