|
![](/i/fill.gif) |
"Tek" <tek### [at] evilsuperbrain com> wrote in news:45588b34$1@news.povray.org:
>
> What I've done is change x & y to (x*2-1,y*2-1), so they go from -1 to
> 1 (heightfields use 0 to 1) and change the output so it's between 0
> and 1 (.5+.5*cos), your original function was outputting values
> between 0 and 2 (1+cos) so when it went above 1 it wrapped round to
> zero again, hence a sharp change.
>
> Hope that helps :)
Absolutely. It looked even better than I remembered it would. The thing I
remember is that this is not the first time I've had problems with ranges.
Just like in a supermarket: I go looking for juice and come out drinking
pure concentrate.
Cheers,
Kari O.
Post a reply to this message
|
![](/i/fill.gif) |