POV-Ray : Newsgroups : povray.general : HELP - Cannot Identify Error : Re: HELP - Cannot Identify Error Server Time: 25 Apr 2019 22:03:00 GMT
  Re: HELP - Cannot Identify Error  
From: Alain
Date: 25 Mar 2018 21:34:42
Le 18-03-23 à 21:20, Sven Littkowski a écrit :
> Hi,
> 
> I have a weird problem: suddenly there is an error in my scene file, but
> I cannot recognize where the error is. Can anyone assist me?
> 
> I am getting that mysterious error sometimes at line 826, sometimes at
> line 833, and sometimes at line 840. Strange, ehh? But it gets even
> stranger: sometimes it renders without any error!
> 
> What's the cause?
> 

There can be a divide by zero situation in :
  #declare MyFactor = 1.0-(1.0/(rand(MyRandom)*MyFactor));
Solution : Add some small value to the rand() value.
 >>> #declare MyFactor = 1.0-(1.0/((rand(MyRandom)+0.01)*MyFactor));


Post a reply to this message

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