Announcement

Collapse
No announcement yet.

Mapview Zooming

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mapview Zooming

    The Freeciv website is currently down, so I'll just post this here... Besides, this patch might need some testing before I submit it to rt...

    Here comes an update of the zoom feature found in Teamciv. Use the numpad + or - to zoom. One zoomstep takes about one second, but will obviously take more on slower machines. The trident tileset takes less time than itsotrident.

    The patch can be found here . Enjoy, and kill bugs

  • #2
    Here's a screenshot...
    Attached Files

    Comment


    • #3
      That looks very interesting, how many zoomlevels does it support right now?
      Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

      Elie A. Shneour Skeptical Inquirer

      Comment


      • #4
        There's currently 5 different zoom levels, ranging from 25% to 125% of the default tile-size. Zoom-out is the most useful, since the graphics get worse as they get bigger than the default.
        There's no limit to the number of zoom-levels there could be, but with many zoom levels it will take a lot of time to get to the zoom-level you want. This is because the graphics are rescaled when you switch to another zoom level.

        Comment


        • #5
          Five zoom levels sounds about right. Add to that isomap support in Freeciv (see below) and we're pretty close to reaching the Civ2 goal.



          > Freeciv savegames are all text-based so there should be no bigendian
          > bias. I dunno about civ2 savegames.

          The script is only for map files, although I'm working on the savegames.

          Civ2 maps, savegames and scenario files are all binary and, I assume, platform
          dependant. I don't have a mac and a copy of civ2 to test this on. Plus I am
          pulling out the terrain and river overlay by checking the high and low nybbles,
          which is going to break (?) on a bigendian machine.

          > Civ2 looks like it uses a "natural" coordinate system. To convert from
          > natural to native coordinates you just divide the X value by 2 and round
          > down (note this may break if you have a negative X value). This is what
          > map_to_native_pos does (though it's optimized).

          Good, cause that's what I did (and it seems to work).

          > Seems like you probably want to use civ2 for the rulesetdir? And set
          > other civ2 options from civ2.serv?

          Since these are only maps, I was mostly interested in the terrain. I figure I
          can always edit the file afterwards to use different settings.

          only thing missing would be proper scenario support. The rulesets offer a lot of options already, but we're not there yet!
          Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

          Elie A. Shneour Skeptical Inquirer

          Comment


          • #6
            Yes CVS has isomap support already. '/set topology 5'. Here is the help:

            Topology
            The map topology index
            Two-dimensional maps can wrap at the north-south or
            east-west edges, and use a cartesian or isometric
            rectangular grid. See the manual for further explanation.
            • 0 Flat Earth (unwrapped)
            • 1 Earth (wraps E-W)
            • 2 Uranus (wraps N-S)
            • 3 Donut World (wraps N-S, E-W)
            • 4 Flat Earth (isometric)
            • 5 Earth (isometric)
            • 6 Uranus (isometric)
            • 7 Donut World (isometric)


            I don't think Civ2 had the donut world maps. At least I cannot remember it. CivCTP did have something of the sort IIRC. BTW, you may see support for even more topologies soon.

            Comment


            • #7
              Vasc,

              No, Civ2 doesn't have donut maps. CtP did have it.

              Could someone post some graphical representation for all
              these topologies? Sometimes its difficult to comprehend the more exotic topologies.
              Skeptics should forego any thought of convincing the unconvinced that we hold the torch of truth illuminating the darkness. A more modest, realistic, and achievable goal is to encourage the idea that one may be mistaken. Doubt is humbling and constructive; it leads to rational thought in weighing alternatives and fully reexamining options, and it opens unlimited vistas.

              Elie A. Shneour Skeptical Inquirer

              Comment

              Working...
              X