POV-Ray : Newsgroups : povray.programming : More POV-Ray crashes on Alpha : Re: More POV-Ray crashes on Alpha Server Time
29 Jul 2024 06:24:01 EDT (-0400)
  Re: More POV-Ray crashes on Alpha  
From: Ronald L  Parker
Date: 6 Aug 1998 22:28:51
Message: <35ca55e7.266421017@news.povray.org>
On Thu, 6 Aug 1998 12:24:37 -0500, "Mark Arrasmith"
<arr### [at] mathtwsuedu> wrote:

>Shouldn't that be (dx_zero)?  Anyway with
>
>if ((dx_zero) && (k1 < k2 - EPSILON / maxdv) && (k1>0.0))

Um.... I don't think so.... You're now saying that you _only_ want to
do those things when dx is zero...  If the problem was exactly as I
stated, you should not only still be crashing, you should be getting
strange results everywhere else as well.  

You're saying that if dx is zero (and thus, when dz is negative, so is
maxdv) you want to divide by maxdv.  That's just not right.  

HOWEVER---

I failed to account for the fact that maxdv can be zero when dz is
zero and dx is negative as well.  Your scene probably tickles dz in
the wrong way instead of dx, and your change has made it not try to
divide in the cases when dz is zero (since dx=dz=0 makes it stop long
before it gets here.)

So what line 2209 should say is:

if (dz_zero || ((!dx_sero) && (k1<k2 - EPSILON / maxdv) && (k1>0.0)))

2220 should still be as I stated in the original post.


Post a reply to this message

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