POV-Ray : Newsgroups : povray.general : Qwextions about area_light : Re: Qwextions about area_light Server Time
8 Aug 2024 18:16:58 EDT (-0400)
  Re: Qwextions about area_light  
From: hughes, b 
Date: 12 Jan 2003 23:09:50
Message: <3e223c0e@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3e22140d@news.povray.org...
> Twitcher <nomail@nomail> wrote:
> > area_light
> > x,z,1,1
>
>   I haven't tried, but making a 1x1 area light seems pointless (it would
> be simply a point light, so why bother making an area light in the first
> place), and perhaps a source of problems for the parser... (If this is
> the reason for the allocation error, then it's a bug which should be
fixed.)

Yes, and I believe Twitcher had mistakenly thought the second two numbers
were for the dimension rather than a grid of points (sublights).

So to clarify that, if so, x and z are the size or area. Use 0.7*x,0.7*z,2,2
to get the result intended. Like Warp said, 1 by 1 is no good.

I checked, and sure enough, the error isn't informative unless you already
know what's going on. Probably should tell the user about a minimal grid
size of points needed for the area light when less than 1 is used just as it
does when it is greater than 1 and less than 2. Oddly enough it's giving a
good error message when negatives are used that are -1 or less but it isn't
doing so for all decimals between -1 and 1.


Post a reply to this message

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