Graphics Update: Making things go faster by doing less

Discussion in 'Planetary Annihilation General Discussion' started by varrak, September 17, 2014.

  1. mjshorty

    mjshorty Well-Known Member

    Messages:
    871
    Likes Received:
    470
    that would be fun to have *specific* templates like earth, where it scales
  2. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    http://en.wikipedia.org/wiki/UV_mapping
  3. squishypon3

    squishypon3 Post Master General

    Messages:
    7,971
    Likes Received:
    4,357
    Honestly if we /had/ to have a map projection I'd suggest the Winkel-Trapel.

    [​IMG]
  4. Pawz

    Pawz Active Member

    Messages:
    951
    Likes Received:
    161
    I was actually asking if there was a low-effort way that I could get some unwraps of PA planets :p
  5. shiwanabe

    shiwanabe Member

    Messages:
    82
    Likes Received:
    32
    Considering I believe they're generated as a cube and then bashed into shape, it could go either way for difficulty. However, I would suspect that it lands in the 'annoyingly hard' part of the spectrum, due to having to flatten a dented cube.

    On a different note: @varrak, who would I need to point a thread at to find out what techniques are used for planet generation?
  6. Pawz

    Pawz Active Member

    Messages:
    951
    Likes Received:
    161
    Try here:
    http://allenchou.net/2013/07/bending-solid-geometry-in-planetary-annihilation/

    http://www.mavorsrants.com/2013/02/planetary-annihilation-engine.html
  7. ace63

    ace63 Post Master General

    Messages:
    1,067
    Likes Received:
    826
    Give me those mesas back :(
  8. varrak

    varrak Official PA

    Messages:
    169
    Likes Received:
    1,237
    We did actually talk about this a while ago. It's really not easy to do at all - in fact it would be quite costly, when compared with all the other goodies we still want to get into the game.
    thelordofthenoobs likes this.
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    If you build walls everywhere and use the positions from the alerts it's actually not hard to do.
    http://nanodesu.info/stuff/pa/mods/test2.html
    Making a projection with all land details would probably be harder, but for a plain "where is land, where is water, etc" just doing a bunch of queries to the system you use to place buildings would be enough to get the datapoints required. I'd be burning to get such an API call, my current method involves using actually building those walls (thanks for the cheats ;)) everywhere.

    EDIT:
    To get some basic coloring I guess the query that returns the mapping points would need to additionally have some information about the point of the map. Like "lava", "ice", "height above sea: 20 meters", etc
    ooshr32 likes this.

Share This Page