|
![](/i/fill.gif) |
I tried something new. I added the keyword "color" before the formula
and it set the values straight. I don't like this. How come without that
keyword the other expression works, and without it the compact one
doesn't? I did a #debug on the value of the #declare'd variables and
look at this:
#declare b=(sky_color+White)/2; //ugly
#declare p=(sky_color*.5+White*.5); //nice
#debug concat("B = ",str(b.x,0,3)," ",str(b.y,0,3)," ",str(b.z,0,3),"
P = ",str(p.x,0,3)," ",str(p.y,0,3)," ",str(p.z,0,3),"\n")
See for yourselves how much B differs from P. I don't understand how
this can generate such different results. At any rate, when you add
"color" to the UGLY pigment declaration, it becomes NICE. :P
--
Anthony L. Bennett
http://welcome.to/TonyB
Non nova, sed nove.
Post a reply to this message
|
![](/i/fill.gif) |