|
|
Beta RC3
Machines
Win NT on 450mh w/ aprox 400 MB of memory
Re-rendering a picture that worked fine on Beta 16, the sky was all red
instead of blue with white clouds.
Cutting out everything except what seems to be the problem the code is
this:
#local w=rgb.7;
camera{location<0,2,-5>}
light_source{y*99 1}
plane{y,0 pigment{ w*y }} // change the 0 to some other value 1, -1, and
the sky is OK
#local V=w*z;
sky_sphere
{ pigment
{ granite
color_map
{ [.4 w*z] // replace w*z with variable V and the sky is OK
[1 w+w]
}
}
}
#warning concat("<",str(w.x,5,3),", ",str(w.y,5,3),",
",str(w.z,5,3),">\n")
#warning concat("<",str(V.x,5,3),", ",str(V.y,5,3),",
",str(V.z,5,3),">\n")
The warnings show the values for w and V are correct.
If I change the offset parameter of the plane (zero), the sky works
fine. Change it to
plane{y, -0 pigment{ w*y }}
and it works fine.
If I use a variable set to w*z (eg. V) instead of having the
multiplication in line, then the sky works fine.
Thank you.
--
Tom A.
There's nothing like cooking and eating outside, unless you like
comfort. - Henny Youngman
Deja mail is gone. Look for me at raugost at yahoo . com
Post a reply to this message
|
|
|
|
Confirmed, using RC3 (icl) on WinXP P3 800 with 512MB.
Note that ground fog will also turn the sky red like this if fog_alt is 0.
Seems something goes wrong when 0, or the equivalent to zero, is used. Your
example shows the plane primitive to be a factor. How one declaration works
right and the other does not sure is peculiar. Just a personal observation.
It also seems to be related to multiplication, as you said.
bob h
Post a reply to this message
|
|
|
|
The problem is also reproducable on Win95, but the problem does not
occur in the Linux version.
--
#local i=.1;#local I=(i/i)/i;#local l=(i+i)/i;#local ll=(I/i)/l;box{<-ll,
-((I/I)+l),-ll><ll,-l,ll>pigment{checker scale l}finish{ambient((I/l)/I)+
(l/I)}}sphere{<i-i,l-l,(I/l)>l/l pigment{rgb((I/l)/I)}finish{reflection((
I/l)/I)-(l/I)specular(I/l)/I}}light_source{<I-l,I+I,(I-l)/l>l/l} // Steve
Post a reply to this message
|
|
|
|
Sky is OK with me, blue and white with green plane in all cases.
Warnings are <0.700,0.700,0.700> and <0.000,0.000,0.000>.
version 3.5.beta.RC3.msvc.win32. Win98SE, Celeron 500, 160MB.
Alf
Post a reply to this message
|
|