math - Mapping points in 2d space to a sphere -
i have bunch of points in rectangular x/y space project onto sphere. in, trying write function:
function point_on_sphere(2dx:number, 2dy:number) : vector3d { //magic return new vector3d(3dx, 3dy, 3dz); }
i have been trying first plot points on cylinder , map points sphere directed this wikipedia page. however, formulas assume constant z=0, doesn't want.
i'm using actionscript 3 / flex, pseudo code or pushes in right direction appreciated.
just clarify: i'm not trying apply texture sphere object, rather place objects along imaginary sphere.
there no 1 right answer. can choose different approaches based on how want place objects along sphere.
is ok objects nearer , nearer each other closer sphere's "poles"? why wouldn't normal texture-mapping projection work you?
Comments
Post a Comment