Post Reply 

Hexagonal tiles

Jan 22, 2011, 21:14
Post: #1
Hexagonal tiles
I've been trying to figure out a way to make hexagonal tiles to use in an XNA game that I'm trying to program. Can anyone point me in the direction of a tutorial that shows this or show me how this can be accomplished with gimp (if it can be). Thanks.
Find all posts by this user
Quote this message in a reply
Jan 22, 2011, 21:43 (This post was last modified: Jan 22, 2011 21:45 by ofnuts.)
Post: #2
RE: Hexagonal tiles
Depends a bit what you call "hexagonal tiles". Gimp, like all image editing software I know, can only produce rectangular images, but you can make parts transparent so whatever is left visible is an hexagon.

Typically, after drawing what will fit in the hexagon:
- use filter/render/gfig to generate a filled hexagon (that will be on an additional layer).
- select new layer and "Layer/Transparency/Alpha to selection" on that new layer (this makes a selection the shape of the hexagon)
- at that point you can still adjust the hexagon position over the drawing ("move selection" option of the move tool)
- selection/invert (selects everything but the hexagon)
- back to image layer
- Del key to stamp out the hexagon
- Image/autocrop to shave the unnecessary transparent bits.
- Save using a filetype that supports transparency (GIF, PNG)

[attachment=119]

PS: the black corners above are really transparent..

Now answering your questions on
https://Gimp-Forum.net
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Chopping an image into tiles Nerdsville 3 536 Mar 1, 2014 23:09
Last Post: Nerdsville

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS