POV-Ray : Newsgroups : povray.binaries.scene-files : Sky simulation : Re: Sky simulation Server Time
16 Apr 2024 13:14:40 EDT (-0400)
  Re: Sky simulation  
From: Alain
Date: 30 Jun 2013 13:13:32
Message: <51d0673c@news.povray.org>

> scott <sco### [at] scottcom> wrote:
>> See example images posted in p.b.i
>>
>> SkySim.inc is the macro, SkySimTestGround.pov is a simple example of a
>> scene using the macro.
>
> Hello, I try your macro but I've got an error on line:
> #local xyYtoR = function (x,y,Y){ (x/y* 3.2406  -1.5372 + (1-x-y)/y *
> -0.4986)*Y/SkyMaxLuminance }
> where Y seems undefined.
> I am wrong?
>

Try calling the function this way:
xyYtoR(x,y,1)

This is a reason to NOT use "X", "Y" or "Z" as user variable names. It 
can lead to some confusion.



Alain


Post a reply to this message

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