• Create Account

Posted 12 August 2012 - 12:46 PM

I've posted this youtube video on how to easily draw (manually, not through code) a hex grid on any canvas. This method applies to all angles and sizes, but my own example won't result in perfect hexes (with all sides the same length; you'll need to use trigonometry for that). But if you do use trigonometry, you can then use my method to make the grid itself. In addition, I'm also showing how to add cartesian coordinates (-x^n thru +x^n, in this case -x,-y thru +x,+y) to each hex in the grid.

http://youtu.be/s6sEdkIYMdA

I just thought I'd post it on Gamedev.net because some of us are using hex grids for our game. I hope you like it.

Cheers.

====================

Edit: I've made a second video (for programmers; a programming algorithm) and posted it in my third post below. Have fun.

Posted 12 August 2012 - 08:37 AM

I've posted this youtube video on how to easily draw (manually, not through code) a hex grid on any canvas. This method applies to all angles and sizes, but my own example won't result in perfect hexes (with all sides the same length; you'll need to use trigonometry for that). But if you do use trigonometry, you can then use my method to make the grid itself. In addition, I'm also showing how to add cartesian coordinates (-x^n thru +x^n, in this case -x,-y thru +x,+y) to each hex in the grid.

I just thought I'd post it on Gamedev.net because some of us are using hex grids for our game. I hope you like it.

Cheers.

Posted 12 August 2012 - 08:36 AM

I've posted this youtube video on how to easily draw (manually, not through code) a hex grid on any canvas. This method applies to all angles and sizes, but my own example won't result in perfect hexes (with all sides the same length; you'll need to use trigonometry for that). But if you do use trigonometry, you can then use my method to make the grid itself. In addition, I'm also showing how to add 2-dimensional cartesian coordinates (-x^n thru +x^n, in this case -x,-y thru +x,+y) to each hex in the grid.

I just thought I'd post it on Gamedev.net because some of us are using hex grids for our game. I hope you like it.

Cheers.

Posted 12 August 2012 - 08:36 AM

I've posted this youtube video on how to easily draw (manually, not through code) a hex grid on any canvas. This method applies to all angles and sizes, but my own example won't result in perfect hexes (with all sides the same length; you'll need to use trigonometry for that). But if you do use trigonometry, you can then use my method to make the grid itself. In addition, I'm also showing how to add 2-dimensional cartesian coordinates (-n^m thru +n^m, in this case -x,-y thru +x,+y) to each hex in the grid.

I just thought I'd post it on Gamedev.net because some of us are using hex grids for our game. I hope you like it.

Cheers.

Posted 09 August 2012 - 08:22 AM

I've posted this youtube video on how to easily draw (manually, not through code) a hex grid on any canvas. This method applies to all angles and sizes, but my own example won't result in perfect hexes (with all sides the same length; you'll need to use trigonometry for that). But if you do use trigonometry, you can then use my method to make the grid itself. In addition, I'm also showing how to add 2-dimensional cartesian coordinates (-x,-y thru x,y) to each hex in the grid.

I just thought I'd post it on Gamedev.net because some of us are using hex grids for our game. I hope you like it.

Cheers.