POV-Ray : Newsgroups : povray.newusers : shadows/sunlight : shadows/sunlight Server Time
28 Nov 2021 09:24:31 EST (-0500)
  shadows/sunlight  
From: Julia
Date: 5 Dec 2020 12:05:01
Message: <web.5fcbbd28869a7092f22e2ddd0@news.povray.org>
Hi,
there is another problem that i have been trying to figure out for the past
week, but i'm just starting to give up.
The problem is that there arent any shadows. Not only on the other side of the
sphere but also when its in front of another nothing happens.
Also when i dont put "ambiet" the spheres just get dark on both sides, still no
shadow.
here is the code:

#include "colors.inc"

camera {
        location <5,10,-60>
        look_at <0,0,0>
        angle 25
        }

light_source {
        <0,0,0>


               }


// słońce
 sphere {
     <0,0,0>, 10
   pigment {
        bozo
                turbulence 5
         color_map {
        [0.0 color <1,0,0>]
        [0.25 color <1,1,0>]
        [1.0 color <1,0.65,0>]
        }
     scale 3
   }
   normal {bumps 1.0}
   finish {ambient 1}

 scale 1/6




}


///////////////////////////////////////////

union
        {
        //ziemia
object        {  sphere {
        <0,0,0>, 3.7
   pigment {
        agate
                turbulence 1.5
         color_map {
         [0.0 color <1,1,1>]
         [0.10 color <0,0.5,0>]
         [1.0 color <0,0,1>]
         }
      scale 2
     }
  finish {ambient 0.8
              diffuse 0.5}

   scale 1/6
   rotate <0,23,0>
   rotate <0,-6260*clock,0>



 }   }

 object
  //księżyc
   {sphere {
        <8,0,0>, 1.5
   pigment {
        granite
                turbulence 1.4
         color_map {
         [0.0 color <1,1,1>]
         [0.10 color <.5,.5,.5>]
         [1.0 color <.8,.8,.8>]
         }
      scale 2
     }
       normal {bumps 1.0}

      finish {
      ambient 0.5
      brilliance 0.5 }

   scale 1/6
    rotate <5,-4680*clock,0>

 }
}

translate <9,0,0>
 rotate <0,-360*clock,0>
 }


thanks for help :))


Post a reply to this message

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