POV-Ray : Newsgroups : povray.newusers : Parallel Light/Depth Cueing : Re: Parallel Light/Depth Cueing Server Time
6 Sep 2024 10:14:00 EDT (-0400)
  Re: Parallel Light/Depth Cueing  
From: Dan Connelly
Date: 14 Sep 1998 21:56:20
Message: <35FDBB30.96CDF2E2@flash.net>
> islam wrote:
> >
> > Is there a way to produce a parallel light source ?
> > ....
> > In short, I would like my light, close to the object,
> > to still behave as a distant light
> >
> > any ideas please - Thanks

I have created a scene to illustrate my earlier fuzzy suggestion.
Note the light is so far from the scene it is basically parallel.

-----------------------------------------

#declare Object_Spacing=5;
#declare NObjects=5;
#declare N=NObjects;
#while (N)
  sphere {
    Object_Spacing * N * <1, 0, 1>,
    2
    pigment{color rgb 1}
    finish{ambient 0 diffuse 1}
  }
  #declare N = N- 1;
#end

camera{
  location <2,0,-2> * Object_Spacing
}

#declare Light_Distance= Object_Spacing * NObjects * 1000;
#declare Fade_Distance = Object_Spacing * NObjects / 2;
#declare Initial_Power = 1;

light_source{
  <0, 0, -Light_Distance>
  color rgb Initial_Power 
  fade_power Light_Distance/Fade_Distance
  fade_distance Light_Distance
}


-- 
http://www.flash.net/~djconnel/


Post a reply to this message

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