POV-Ray : Newsgroups : povray.newusers : Bright harsh shadow lines using attenuation Server Time
21 Dec 2024 07:38:09 EST (-0500)
  Bright harsh shadow lines using attenuation (Message 1 to 2 of 2)  
From: Stuart
Subject: Bright harsh shadow lines using attenuation
Date: 20 May 2016 17:40:00
Message: <web.573f83afc23a6d9245ff35e0@news.povray.org>
Can someone explain (or point me to an explanation) of why bright lines appear
in the shadows when you move the light off axis? The bright lines are not
present if the boxes are solid, it only happens with attenuation. Is there a way
around this result? Code below.
Thanks,
Stuart

#version 3.7; #include "colors.inc" global_settings {ambient_light <0,0,0>
assumed_gamma 1}
camera {angle 35 location  <500, 0 , 0> look_at <0 , 0 , 0>}
# declare boxcolor = texture{pigment{rgbt 1} finish { reflection 0.0 ambient 0.0
diffuse 0.0 phong 0.0 roughness 0.0 irid {0.0}}}
# declare boxinterior =  interior{fade_power 10000 fade_distance 9}
//light_source{<1000, 0 , 0> rgb <2,2,2>}
light_source{<1000, -10 , -10> rgb <2,2,2>}
plane { <1,0,0>,0 texture{pigment{rgb 1}}}
box {<700, 0, 0> <717.5, 20, 20> hollow texture{boxcolor} interior{boxinterior}}
box {<700, 0, 0> <735, -20, 20> hollow texture{boxcolor} interior{boxinterior}}
box {<700, 0, 0> <752.5, 20, -20> hollow texture{boxcolor}
interior{boxinterior}}
box {<700, 0, 0> <770, -20, -20> hollow texture{boxcolor} interior{boxinterior}}


Post a reply to this message

From: clipka
Subject: Re: Bright harsh shadow lines using attenuation
Date: 20 May 2016 18:13:57
Message: <573f8c25$1@news.povray.org>
Am 20.05.2016 um 23:38 schrieb Stuart:
> Can someone explain (or point me to an explanation) of why bright lines appear
> in the shadows when you move the light off axis? The bright lines are not
> present if the boxes are solid, it only happens with attenuation. Is there a way
> around this result? Code below.

Coincident surfaces. They can cause weird artifacts.

Make sure your boxes overlap a tiny bit, and you'll see the lines disappear.


Post a reply to this message

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