Quote Originally Posted by User137
Ok i might throw some ideas:
- First thought came that sphere can consist of spherified cube; say a cube with NxN grid on each of 6 sides and vertices moved so they are from equal length out of center. This divides sphere more evenly into "tiles". Each side is 90 degrees away from each other.
I'm not sure I quite grasp the purpose of creating a cube for the sake of simulating a sphere... :scratch:

Quote Originally Posted by User137
- Day night calculation. 2 parameters needed: Earth rotation angle, Earth angle towards sun.
I assumed that day/night would probably be the easiest of them all, heck if I went 2D then it would be a simple matter of using the day/night texture too if I wanted.

Quote Originally Posted by User137
- Positioning, i'd place every object using 3D coordinates instead of 2D even when it's surface of sphere. That way it is easier to calculate distances and pathing. Note that paths still aren't linear; earth isn't flat Path creates an arc instead of line.. not bothered to draw it, formula might be easy to make.
This seems like it might be the toughest way to do this. Nevermind that my math is weak in this area, but the fact that determaning zones would be a royal pain, no?

But you have a very good point about the non-flat earth. I know the kind of arch that a path of that size would make having looked at a few charts that plot stuff like that in the Navy, etc... I do believe that there must be a way to calculate a path in 2D though.

Quote Originally Posted by User137
- Zones/continents could propably be made of arrays of 3D points forming the outlines. Bit tricky checking if object is in area. Only other choice i can think of would be marking each "tile" with zone info, however this is very rough solution. Even as rough solution it could still be used as pre-calculation, narrowing down the choices quickly.
I think this is what kills me wanting to do 3D entirely. It's already my weak area and this blows what I know out of the water. So it looks like full calculations 3D are out.


I do want to have a 3D representation if I can manage it though. So I guess the only 3D calculations I'll need at from 2 to 3. This does leave the open question of how does one calculate a path simulating the curvature of the earth, given the radius/diameter of the earth across a 2D plane. Gives me something to Google for I guess.