POV-Ray : Newsgroups : povray.general : Can't get light_source to work properly (extremely simple scene) : Can't get light_source to work properly (extremely simple scene) Server Time
29 Jul 2024 14:24:05 EDT (-0400)
  Can't get light_source to work properly (extremely simple scene)  
From: MagicMojo
Date: 23 Apr 2011 07:15:01
Message: <web.4db2b3ebd06940e624c275de0@news.povray.org>
I get nearly the same result regardless of whether I set the cam at z=-35 or
z=-50. Worse, I cannot get the arrows to be illuminated properly, leaving the
arrows as black objects against the white background.
I copied the light source from the woodbox.pov sample scene. There must be
an obvious blunder that I made.

I use PoVRay 3.62

//updownarrows.pov

#include "colors.inc"

background { White }

camera {
   location <14 0, -35> //-35 or -50, nearly same result (too close)
   direction <14, 0,  2.25>
   right x*1.33
   look_at <0,0,0>
}
#declare Dist=180.0;
light_source {< 0, 2.5, -10> color White //-50, 25, -50
     fade_distance Dist fade_power 2}

#declare downarrow = union
{
   cylinder
   {
       <0,0,0>,<0,4,0>,2
       color Green
   }
   cone //hollow?
   {
       <0,0,0>3,<0,-2,0>,0.3
       color Green
   }
}

object {downarrow
        color Green
}
object {downarrow
        color Blue
        translate x*6
        rotate x*180
        translate y*2
}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.