|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
(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've done a bit more testing on this. It doesn't matter if you're rendering
to a PNG or a BMP, it occurs with both, so even if it's related to the PNG
bug, it is different.
BTW, has anyone been able to verify this?
Thanks,
Michael
"Redbeard (MDJohnson)" <red### [at] wvadelphianet> wrote in message
news:3bb2bcc4@news.povray.org...
> (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
|
|
| |
| |
|
|
|
|
| |
|
|