POV-Ray : Newsgroups : povray.advanced-users : Formula to add pigment image map to isosurface sphere ? : Re: Formula to add pigment image map to isosurface sphere ? Server Time
30 Jul 2024 06:26:58 EDT (-0400)
  Re: Formula to add pigment image map to isosurface sphere ?  
From: David Fontaine
Date: 5 Feb 2000 16:46:38
Message: <389C99FF.5FD07069@faricy.net>
To map to a sphere:

#declare foo=function{...}
...
function {
   foo(atan2(x,z)/pi,atan2(y,sqrt(x^2+z^2))/(.5*pi),sqrt(x^2+y^2+z^2))
}
...

X goes around the equator from -1 to 1
Y goes from southern pole to northern pole from -1 to 1
Z goes outward from center from 0 to infinite

--
Homepage: http://www.faricy.net/~davidf/
___     ______________________________
 | \     |_       <dav### [at] faricynet>
 |_/avid |ontaine      <ICQ 55354965>


Post a reply to this message

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