POV-Ray : Newsgroups : povray.general : Help - Lost in shadows and light_groups : Re: Help - Lost in shadows and light_groups Server Time
18 Nov 2024 21:23:08 EST (-0500)
  Re: Help - Lost in shadows and light_groups  
From: Philippe Debar
Date: 17 Jul 2002 05:48:19
Message: <3d353d63$1@news.povray.org>
OK, I got a working solution, although I do not understand at all why it is
working... (I hate that). I just combined the two behaviour I do not
understant...

It goes like this :

camera {
  location  <0.0, 0.5, -5.0>
  direction 1*z
  right     x*image_width/image_height
  look_at   <0.0, 1,  0.0>
}

#declare vObjectLoc=<.5,2,2>;

#declare Inner_light=
light_source{vObjectLoc color rgb <0,0,1>};

#declare No_shadow_object=
sphere{
  vObjectLoc, 1
  texture{pigment{bozo scale .25}}
  hollow
  no_shadow
};

#declare Shadowing_object=
sphere{
  vObjectLoc, .999
  texture{pigment{color rgbf 1}}
  interior_texture{pigment{color rgbf 0}}
  no_image
  hollow
};

#declare Main_back_light=
light_source{vObjectLoc*5 color rgb .75};

#declare Fill_front_light=
light_source{<-1,.1,-1>*vObjectLoc*5 color rgb .75};


#declare Ground= plane{y, -1 texture{pigment {color rgb 1}}};

#declare A_Sphere=
sphere{
  <-.5,1,2>, .5
  texture{
    pigment{color rgbf .75}
  }
};


#declare Rest_of_the_scene=
union{
  object{Ground}
  object{A_Sphere}
}


light_group {
  Main_back_light
  Fill_front_light
  light_group {
    Inner_light
    No_shadow_object
    Rest_of_the_scene
  }
  light_group {
    Shadowing_object
  }
}


Post a reply to this message

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