|
|
On Tue, 3 Sep 2002 17:19:23 -0500, hughes b <omn### [at] charternet> wrote:
> I had passed this message so quickly before I meant to go back to it and
> copy/paste into POV and it got skipped.
>
> The blue coloration is a real curiosity alright. Found that gray_threshold 1
> in radiosity clears it up, so maybe there's a glitch in that. I really have
> no idea though.
I use binary compiled with ICC and I noticed this when using the
lightsys stuffs:
#debug concat(" lct: ", vstr(3, lct, " ", 0, 3), "\n")
#local lct2=vnormalize((lct/REF_WHITE))*3;
#debug concat(" lct2 #1: ", vstr(3, lct2, " ", 0, 3), "\n")
#local lct2=lct2+(COLOR_FILTER.gray)-COLOR_FILTER;
^^^^^^^^^^^^^^^^^^^
#debug concat(" lct2 #2: ", vstr(3, lct2, " ", 0, 3), "\n")
#local Light_Color=(lct2*(lm/MAX_LUMENS)*lm);
#debug concat(" Light_Color: ", vstr(3, Light_Color, " ", 0, 3), "\n")
now when I include it, I get:
lct: 1.000 0.459 0.060
lct2 #1: 2.626 1.435 0.212
lct2 #2: 2.399 1.208 -0.015
^^^^^^
Light_Color: 4317.879 2174.049 -26.481
lct: 1.000 0.538 0.077
lct2 #1: 2.516 1.613 0.260
lct2 #2: 2.289 1.386 0.033
Light_Color: 4120.097 2494.310 60.007
...
that negative value for blue causes evil blue areas into the picture
(lightsys.pov).
now, when I change
#local lct2=lct2+(COLOR_FILTER.gray)-COLOR_FILTER;
to
#local lct2=lct2+ COLOR_FILTER.gray -COLOR_FILTER;
I get the same as with the official povray 3.5:
lct: 1.000 0.459 0.060
lct2 #1: 2.626 1.435 0.212
lct2 #2: 2.626 1.435 0.212
Light_Color: 4726.759 2582.928 382.399
lct: 1.000 0.538 0.077
lct2 #1: 2.516 1.613 0.260
lct2 #2: 2.516 1.613 0.260
Light_Color: 4528.977 2903.190 468.887
what's up?
is the parser code buggy?
does ICC generate buggy code for the parser code?
--
Safari - y7p### [at] sneakemailcomgovinvalid
"Talk is cheap. Show me the code." - Linus Torvalds
Post a reply to this message
|
|