POV-Ray : Newsgroups : povray.general : having trouble with a texture... : Re: having trouble with a texture... Server Time
31 Jul 2024 18:26:52 EDT (-0400)
  Re: having trouble with a texture...  
From: Shark
Date: 22 Oct 2006 19:30:00
Message: <web.453bfe36cc2493de1bce5b0e0@news.povray.org>
"Slime" <fak### [at] emailaddress> wrote:
> > One more thing: what is the proper way of scaling the pigments or
> functions?
> > Their frequency is so high that the pattern occurs more than once on a
> > single sphere.
>
> f_ph probably returns an angle from -pi/2 to pi/2. You can use f_ph(x,y,z) /
> pi + .5 to get that between 0 and 1.
> f_th probably returns an angle from 0 to 2*pi. You can use
> f_th(x,y,z)/(2*pi) to get that between 0 and 1.
> f_th might actually return an angle from -pi to pi, in which case
> f_th(x,y,z)/(2*pi) + 1 will work.
>
>  - Slime
>  [ http://www.slimeland.com/ ]

Thank you. FYI, the angle returned by f_ph is between 0 and pi.


Post a reply to this message

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