POV-Ray : Newsgroups : povray.general : having trouble with a texture... : Re: having trouble with a texture... Server Time
31 Jul 2024 18:25:04 EDT (-0400)
  Re: having trouble with a texture...  
From: Slime
Date: 22 Oct 2006 17:43:41
Message: <453be60d$1@news.povray.org>
> 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/ ]


Post a reply to this message

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