POV-Ray : Newsgroups : povray.beta-test : division-by-zero-crash? : Re: division-by-zero-crash? Server Time
30 Jul 2024 20:29:35 EDT (-0400)
  Re: division-by-zero-crash?  
From: Thorsten Froehlich
Date: 28 Sep 2001 14:36:49
Message: <3bb4c341@news.povray.org>
In article <MPG.161edd5f8ac5762898968e@news.povray.org> , Lutz-Peter Hooge
<lpv### [at] gmxde>  wrote:

> If using a function in a pigment like this
>
> #declare f=function {1/x}
> plane{z,0 inverse pigment{function{f(x,y,z)}}}
>
> povray crashes after creating the preview window.
> A problem with with the handling of div. by zero errors I guess.

Hmm, I get a proper "Floating-point exception detected in function 'f'. Your
function either attempted a division by zero, used a function outside its
domain or called an internal function with invalid parameters." message
using the "A typical camera" template together with your example.  Without a
set camera the scene runs through without any problems.


    Thorsten


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.