POV-Ray : Newsgroups : povray.newusers : Bobby hat : Re: Bobby hat Server Time
29 Jul 2024 02:22:35 EDT (-0400)
  Re: Bobby hat  
From: Kari Ojala
Date: 14 Nov 2006 08:40:49
Message: <Xns987B9FAB048FDkariojalaikifi@203.29.75.35>
"Tek" <tek### [at] evilsuperbraincom> 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

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