POV-Ray : Newsgroups : povray.newusers : Strangeness with Parallel Lights : Strangeness with Parallel Lights Server Time
30 Jul 2024 14:28:32 EDT (-0400)
  Strangeness with Parallel Lights  
From: Phil Cook
Date: 10 Feb 2004 10:12:15
Message: <opr25twbswp4ukzs@news.povray.org>
I've hacked away at a much larger script to isolate the error which 
produce the code below; and still it refuses to behave.

The camera is inside a hollowed out box, there are no openings to the 
outside world. I'm pointing a set of parallel lights from outside the box 
to a point inside.

So. where's the light coming from?

Am I doing something fundementally wrong (most likely) or is this some 
property of parallel light's I don't know about showing up?

Please save my sanity and allow me to get back to my project.

--
Phil

<code>

#declare WindowGap=16;
#declare NumberOfWindows=5;

camera{
location <6,15,2>
look_at <6,15,30>
}

#declare OuterWall=
difference{
box{0,<20,20,100>}
box{0,<18,18,98>  translate <1,1,1>}
pigment{rgb <1,0,1>} finish{ambient 0.2}
hollow
}

#declare WindowCount=1;
#while(WindowCount<NumberOfWindows)
light_source{<-5,6,WindowGap*WindowCount> rgb 1 parallel point_at 
<1,0,WindowGap*WindowCount>}
#declare WindowCount=WindowCount+1;
#end

object{OuterWall}
</code>

-- 
All thoughts and comments are my own unless otherwise stated and I am 
happy to be proven wrong.


Post a reply to this message

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