POV-Ray : Newsgroups : povray.advanced-users : Strange pigment error (3.6.1) : Re: Strange pigment error (3.6.1) Server Time
3 Jul 2024 06:24:49 EDT (-0400)
  Re: Strange pigment error (3.6.1)  
From: SharkD
Date: 11 Sep 2009 19:26:54
Message: <4aaadcbe$1@news.povray.org>
SharkD wrote:
> clipka wrote:
>> SharkD schrieb:
>>> As I pointed out in my second post, the error only occurs after I 
>>> apply the turbulence warp.
>>
>> Probably because the object normally doesn't touch the "dangerous" 
>> range, but the warp pertubs the coordinates in such a way that the 
>> pattern's original y<=-1 range ends up "exposed".
> 
> Is it possible to do use an IF statement to substitute a different 
> function where y<=-1?
> 
> -Mike

Changing the second function to this seems to fix it:

#local Temp_fnc3 = function
{
   max(0,min(1,Temp_fnc1(x,log(max(y + 1,0.000000000001))/log(2),z)))
}


Post a reply to this message

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