Results 1 to 9 of 9

Thread: 3D->2D projection of a cube world?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Guild Novice
    Join Date
    Feb 2012
    Location
    28° 32′ 1″ N, 81° 22′ 33″ W
    Posts
    7

    Default

    Thanks for the response, Hai.

    The image I posted was actually a game I found called Martian Chess, which helped inspire this 3D board game project.

    I probably should have mentioned that this is going to be a computer game, not an "actual" board game. I'm not planning on having the entire cube visible to any player at any time; at most, one hemisphere. Players will be able to pan the center of the projection to different points on the cube, so the area in focus will be least distorted at any given time. I've been doing more research, and I think an orthographic projection is going to be the easiest to interpret from the player's seat.


    I think the steps involved will be something like this:
    1. Create a cube with grid lines
    2. Stretch the cube into a sphere
    3. Create an equator and prime meridian plane (which will be hidden in gameplay)
    4. Create an orthographic projection based on points relative angles to those planes

  2. #2
    Software Dev/Rep Hai-Etlik's Avatar
    Join Date
    May 2009
    Location
    48° 28′ N 123° 8′ W
    Posts
    1,333
    Blog Entries
    1

    Default

    Quote Originally Posted by heavyrocks View Post
    I probably should have mentioned that this is going to be a computer game, not an "actual" board game. I'm not planning on having the entire cube visible to any player at any time; at most, one hemisphere. Players will be able to pan the center of the projection to different points on the cube, so the area in focus will be least distorted at any given time. I've been doing more research, and I think an orthographic projection is going to be the easiest to interpret from the player's seat.
    No, orthographic wouldn't work as you wouldn't be able to cover the full sphere, just one hemisphere of it. That would put you in about the same position as the "martian chess" board. In fact you don't need the sphere, you can do an orthographic projection of a sphere directly, it's just an ordinary drawing of a cube without perspective.

    The polar aspect of the equidistant azimuthal projection is fairly simple to work with. If you can transform between Cartesian and Spherical coordinate systems, that's pretty much all you need to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •