Create account / Log in

Hex grid help needed

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Hex grid help needed

Postby barbanera » January 19th, 2021, 8:28 pm

I am trying to use a hex grid where pieces (which have 3 hexes joined togethere) have to snap at vertices instead of hex centers.

But whatever I try then end up shifted somewhat along an edge of the hexes, instead, see image attached.

weirdsnaps.png
weirdsnaps.png (226.74 KiB) Viewed 743 times


This is with the following hex grid settings:

hexgridsettings.jpg
hexgridsettings.jpg (25.65 KiB) Viewed 743 times

Any hex grid expert out there that can help?
Thanks.
barbanera
 
Posts: 470
Joined: January 12th, 2012, 2:27 pm

Re: Hex grid help needed

Postby jrwatts » January 20th, 2021, 2:27 am

The problem is that the center of your 3-hex images is not actually the middle vertex--you need to add some transparent space below (for piece #1) or above (for piece #7) to shift the center point.
jrwatts
 
Posts: 224
Joined: April 29th, 2020, 10:30 pm

Re: Hex grid help needed

Postby barbanera » January 20th, 2021, 6:44 am

Right, that's it, thanks!
barbanera
 
Posts: 470
Joined: January 12th, 2012, 2:27 pm

Re: Hex grid help needed

Postby pawnpusher » January 20th, 2021, 1:08 pm

I'm guessing that VASSAL sees the three hex block as a bounding rectangle, and calculates the center as the center of that bounding rectangle. So to get the center of the bounding rectangle to converge with the center of area of the three hex block, the bounding rectangle needs to be expanded with transparent area.
User avatar
pawnpusher
 
Posts: 39
Joined: October 5th, 2013, 4:04 am
Location: Texas


Return to Module Design

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron