[Papervision3D] plane on a Sphere

Karim Beyrouti karim at kurst.co.uk
Tue Apr 29 03:11:32 PDT 2008


Hi All, 

 

I am trying to align planes on a Sphere and not sure where I am going wrong.


 

This is the equation I am using:

 

       plane.x = radius * Math.cos(angleH * Math.PI/180 ) * Math.cos(angleV
* Math.PI/180 );

       plane.y = radius * Math.cos(angleH * Math.PI/180 ) * Math.sin(angleV
* Math.PI/180 );

       plane.z = radius * Math.sin(angleH * Math.PI/180 );

 

it seems to work well horizontally, however I cannot seem get it to work
vertically. I am sure it is something simple. 

 

Any ideas?

 

 

 

Kind regards

 

 

- karim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/papervision3d_osflash.org/attachments/20080429/84912d2c/attachment.html 


More information about the Papervision3D mailing list