|
|
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
|
|