|
![](/i/fill.gif) |
(POV-Ray 3.5beta4, AMD Athlon 700, 192MB RAM)
I believe I've found a bug involving infinity. Consider the following code:
#include "stdinc.inc"
#declare X = vnormalize(o);
#debug concat(vstr(3,X,",",0,-1), "\n")
#declare I = 0;
#while (I < 10)
sphere { X, 1 pigment { White } finish { ambient 1 } }
#declare I = I + 1;
#end
camera { location -z * 20 look_at 0 }
The output is:
-1.#IND00,-1.#IND00,-1.#IND00
Scene contains 10 frame level objects; 0 infinite.
Reallocing Finite to 30
If I then increase the limit for I to 11 POV-Ray shuts down uncermoniously
while creating bounding slabs.
Granted, vnormalize(<0,0,0>) shouldn't work right, but I'd rather it give an
error than continue in such a strange fashion.
(BTW, If you set the precision to 2 you get '-1.#J,-1.#J,-1.#J', really
weird :-)
Any thoughts?
Michael
Post a reply to this message
|
![](/i/fill.gif) |