POV-Ray : Newsgroups : povray.binaries.scene-files : Sky simulation : Re: Sky simulation Server Time
25 Apr 2024 23:10:45 EDT (-0400)
  Re: Sky simulation  
From: scott
Date: 1 Jul 2013 07:54:13
Message: <51d16de5$1@news.povray.org>
> It works (not fine but with no errors) when I change Y by z:
> #local xyYtoR = function (x,y,z){ (x/y* 3.2406  -1.5372 + (1-x-y)/y *
> -0.4986)*Y/SkyMaxLuminance }
> I know this is not the good value but I try to see what happens.
> I use v3.6 and v3.7 with the same result.

If you change the Y to z in the parameter list then just change the Y to 
z in the equation too:

#local xyYtoR = function (x,y,z){ (x/y* 3.2406  -1.5372 + (1-x-y)/y *
-0.4986)*z/SkyMaxLuminance }

That should then work the same as the original version.


Post a reply to this message

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