POV-Ray : Newsgroups : povray.beta-test : Shadow faults : Re: Shadow faults Server Time
2 Nov 2024 03:14:05 EDT (-0400)
  Re: Shadow faults  
From: Mike Williams
Date: 27 Jan 2002 21:06:52
Message: <AhxHXBAb8KV8EwDq@econym.demon.co.uk>
Wasn't it John Ridgway who wrote:
>The attached is a scene I created at scale 1 POV unit is a metre.  I then
>scaled the objects and camera by .001 (sc=.001) to make 1 POV unit is 1
>kilometer.  You will notice that the shadows cast by the objects are
>incomplete.  Set sc to 1 or .01 and the shadows are correct.

Confirmed.


Here's the same effect with a simplified scene and in close-up. The
second box doesn't cast a shadow, and there's no shadow cast on it from
the first box.

Enclose the boxes in a merge{}, and the shadows are correct. 


#declare sc=0.001;

//merge {
box{<-.5,0.8,-.5>,<.5,1.2,.5> pigment{rgb 1} scale sc}
box{<-.5,0,-.5>,<.5,.4,.5> pigment{rgb 1} scale sc}
box{<-.5,0,-20>,<20,-.2,20> pigment{rgb 1} scale sc}
//}

background{rgb<1,0,0>} 

light_source{<-200,150,100> rgb 1 } 

camera{
  location<2.5,3.5,-19.5>*sc
  look_at<-100,-150,1000>*sc
  angle 10
}  

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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