POV-Ray : Newsgroups : povray.advanced-users : Divide by Zero Error ? : Re: Divide by Zero Error ? Server Time
4 Jul 2024 12:23:39 EDT (-0400)
  Re: Divide by Zero Error ?  
From: Wojtek Bauman
Date: 9 Aug 1999 10:41:00
Message: <37aee87c@news.povray.org>

>
>Is this causing a divide by zero error or ? It gets past parsing but
>when is gets to building bounding slabs it crashes Pov violently.
>
>camera{location<0,20,20>look_at 0}
>
>light_source{<0,50,100> rgb 1}
>
>#declare Y = 0;
>#while (Y < 50)
>       #declare X = 0;
>       #while (X < 50)
>              sphere {
>                     <X, Y, sin(X/Y)>, 0.1
>                     pigment {color rgb<(sin(X/Y) + 1)/2, 0, 0>}
>              }
>              #declare X = X + 1;
>       #end
>       #declare X = 0;
>       #declare Y = Y + 1;
>#end

Howdy!

I've rendered it with POV 3.02 and 3.1g (both for linux).
3.02 rendered it without any errors nor even warnings, but
POV 3.1g generated some division by zero warnings and when
it came to creating vista buffer, segmentation fault
occured (but I didn't gain root ;)

---
Wojtek 'ReaveR' Bauman | admin @127.0.0.1 | rea### [at] spleenwawpl |
http://reaver.spleen.waw.pl | Get PGP: finger bauman@inx.pm.waw.pl
Key ID: 0xCB173E3E | ICQ: 3429749 | *** POV-Ray  F O R E V E R ***


Post a reply to this message

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