i have a 3D globe. I want to connect 2 points on the globe. I get the points by an IP adress. With this adress i make a request to a server which gives me back the longitude and latitude. Now I want to connect two of these points to each other. What is the best way to do it?
Ok. First i need to convert longitude and latitude into XYZ coordinates. Thats right. But i have something in mind how to do it.
After i did this, i need to connect 2 XYZ coordinates on a globe with something like an arrow which goes around the globe. I am trying to do something like a globe, on which you can see diffrent hacker attacks from one to another IP adress.
But i will look your input first! Maybe it will help me. Thanks alot, i will reply if i need some more help or im finished with my project :)
Hey, the input you have me is pretty good. But I still have some problems. I convert my Input into Cartesian System and try to draw it on the globe. And it is allways off. I played around with some values but it seems i cannot finde the problem. Is there anyway how i could upload my project and someone could look over it?
Ok, it seems i calculate the Latitude right and i get something wrong with the Longitude. I use the girlpower patch you showed me and copied the funktions. I modified them a little bit for my use. Now i just recalculated the XYZ vector to longitude and latitude so i can see what is going wrong. If i put them on google maps it shows me the same point as in my globe. So it seems something is wrong with my longitude math.
Maybe i should mention, i get them in the Dezimal form like : 43.3215 not in the other form wiht NSWE in it.