Sign in to follow this  
deltawing1

Spherical Coordinates?

Recommended Posts

Hi, I'm trying to make a simple simulation (while will later turn into a game). The simulation is to have an Earth floating in space, and with satellites orbiting it. My problem is that I need to dynamically generate political borders that wrap around the contour of the sphere. When I click on a country, that country should light up. (I'm not trying to the real political borders! that would be too complicated) I can do this with a flat cartesian system ... just write code to define the borders of particular countries. I'd make a Country class and inside the class I would define the border coordinates, then draw then onto a Canvas class on something. Can someone help me with the spherical model? I only need a few tips to get started, because I really am totally bogged down and out of ideas. Thanks!

Share this post


Link to post
Share on other sites

Hello deltawing1.

I googled for sphere cube generation split and think that the first link may interest you.

There are plenty of ways to create a sphere, but I think that creating it from a octahedron gives you the best surface, because it is completely convex and you can use two square textures (or one rectangular) to define your map.

At the beginning, it also explains a little about spherical coordinates.

I don't know your math background, so the coordinate system may be a somewhat confusing/scarce from those articles.

Hope this helps. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this