|
|
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
|
|