Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: SVG hex grids

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default SVG hex grids

    I made a little online hex grid generator that outputs SVG files. It's just simple black line on transparency at the moment, but colors would be easy to include, as would hex numbering and so on. Because it's SVG you can scale it however you want without any distortion, load it in Inkscape or GIMP, etc., so some of you might find it useful.

    I just did it for fun, but if anyone thinks this is worthwhile or has feature requests let me know and I might expand it into something better.

    http://axiscity.hexamon.net/users/is...sc/svg-hex.cgi
    Last edited by isomage; 10-07-2010 at 06:11 AM. Reason: fixed url
    My random map generators and GIMP scripts: http://axiscity.hexamon.net/users/isomage/

  2. #2
    Community Leader mearrin69's Avatar
    Join Date
    Sep 2009
    Location
    Portland, OR
    Posts
    2,318

    Default

    Awesome. Have some rep. Also, numbering would be a great addition I think. Could you make it so that you can select the font/size used...or so that the text items are "live" so they can be changed in Illustrator, etc.? That'd be cool.
    M

  3. #3

    Default

    Excellent! Great for making boardgame maps! Thanks!

    :: Edit :: This is so cool. Just generated a 100 x 100 hexgrid (which is as much as I'll ever need). Each hex is an individual object so I can use as many as I need. Fabulous! Have some rep! Numbering would be out of this world and very appreciated!

  4. #4

    Default

    I've added optional hex numbering, and the text elements are individually editable in inkscape (you can change the font, etc), so I assume they would be in Illustrator too.

    Is it roughly what you guys were wanting?
    Last edited by isomage; 10-07-2010 at 07:07 PM.
    My random map generators and GIMP scripts: http://axiscity.hexamon.net/users/isomage/

  5. #5

    Default

    I just added color options for the grid and the numbering.
    My random map generators and GIMP scripts: http://axiscity.hexamon.net/users/isomage/

  6. #6

    Default

    This works like a dream in Drawplus. The colours don't really matter so much to me as I can set those myself, but could I request:

    a. Is it possible to have the numbers on a separate layer to the hexes?
    b. Is it possible to have different numbering options? For example without the comma or A0, A1, A2 etc where the letters correspond to columns. (trying to think of other conventions)
    c. Is is possible to have an optional dot in the middle of each hex (again on a separate layer) to measure lines of sight? (I know some games use these).

    I think this is a one of a kind application on the net, you should mention it on Boardgame Geek. I'm sure there are a lot of folks over there who would appreciate it.

  7. #7

    Default

    Is it possible to have the numbers on a separate layer to the hexes?
    SVG doesn't seem to support layers, but it can handle groups of objects, so I've put the hexes and numbers in their own groups; see if that does the trick.

    Is it possible to have different numbering options? For example without the comma or A0, A1, A2 etc where the letters correspond to columns. (trying to think of other conventions)
    As a first step toward that, I've added a user-specified format string for the hex labels. The string can contain whatever characters you want, and the special symbols "%x" and "%y" will be replaced with the hex column and row, respectively. So the original formatting (column, comma, row) would be gotten with "%x,%y". If we figure out what other kinds of labels should be possible, I can extend the format options.

    Is is possible to have an optional dot in the middle of each hex (again on a separate layer) to measure lines of sight?
    Added an "enable guides" option, along with an associated color. The dots will be in their own group.
    My random map generators and GIMP scripts: http://axiscity.hexamon.net/users/isomage/

  8. #8

    Default

    Quote Originally Posted by isomage View Post
    SVG doesn't seem to support layers, but it can handle groups of objects,
    That is how Inkscape implements layer/sub-layers.

    Take a look at a layered example from inkscape and try to make your layer groups compatible.

    -Rob A>

  9. #9
    Community Leader Facebook Connected Steel General's Avatar
    Join Date
    Jun 2008
    Location
    Ft. Wayne, IN
    Posts
    9,530

    Default

    Neat stuff Isomage, not sure if I'll ever need it, but thanks for posting.
    My Finished Maps | My Challenge Maps | Still poking around occasionally...

    Unless otherwise stated by me in the post, all work is licensed under a Creative Commons Attribution-Noncommercial 3.0 United States License.



  10. #10

    Default

    I can't believe how quickly you're doing this....it's like magic!

    The groups work fine in drawplus as do the centre dots.

    The only thing (because I'm thick that way) that I can't work out is what to use to substitute the %x,%y to get different strings? Would it be possible to number the hexes sequentially across or down?

    Cheers!

    Ravs

Page 1 of 2 12 LastLast

Posting Permissions

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