POV-Ray : Newsgroups : povray.general : Clouds Don't Cast Shadow : Clouds Don't Cast Shadow Server Time
2 Nov 2024 05:21:47 EDT (-0400)
  Clouds Don't Cast Shadow  
From: CFM
Date: 12 May 2004 13:05:00
Message: <web.40a258ef66383bf31a36c3040@news.povray.org>
My POV-ray tutorial told me that if I wanted the sun created by the
sky_sphere command to emit an apparent shadow through clouds, I'd have to
make a really large sky_sphere with the proper texture,and put the
light_source outside the sky_sphere. How do I do that, since the tutorial
never told me? Here's the programming language below I used to create the
sky_sphere with the sun and clouds, but the clouds do not cast shadows.

#include "colors.inc"
#include "finish.inc"
camera {
  location <0,1,-10>
  look_at <0,4,0>
  angle 80
}
light_source {<0,1e4,10000>White scale 1300}
sphere {
  <0,2,0>,1
  pigment {color rgb <1,1,1>}
  finish {ambient .2 diffuse 0 reflection .6}
}
sky_sphere {
  pigment {
    gradient y
    color_map {
      [0,.002 color rgb<1,.2,0>
              color rgb<1,.2,0>]
      [.002,.2 color rgb<.8,.1,0>
               color rgb<.2,.2,.3>]
    }
  }
  scale 2
  translate -1
  pigment {
  bozo
  turbulence .65
  octaves 6
  omega .7
  lambda 2
  color_map {
    [0,.1 color rgb<.5,.5,.5>
          color rgb<.75,.75,.75>]
    [.1,.5 color rgb<1,1,1>
           color rgbt<1,1,1,1>]
    [.5,1  color rgbt<1,1,1,1>
           color rgbt<1,1,1,1>]
  }
  scale .1
}
rotate -135*x
}
plane {
  y,0
  pigment {color Green}
  finish {ambient .3 diffuse .7}
}


Post a reply to this message

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