Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Isometric Hexagonal Tile Map  (Read 9084 times)

0 Members and 1 Guest are viewing this topic.

AFS

  • Full Member
  • ***
  • Posts: 115
    • View Profile
Isometric Hexagonal Tile Map
« on: January 07, 2013, 11:16:55 pm »
Hello, I'm new here. I wanted to show you people a little project I'm making. It's pretty much what says on the title.

I don't want to upload the code or the executable just yet, because the code is very messy and the application is a little unstable, and I still need to work on some details, but to compensate I made a little video showing its features:

http://www.youtube.com/watch?v=eFRRyXXk2z0

Please let me know what you think.

By the way, thanks to Laurent for making SFML. I fell in love with it. Is that wrong?

Have a nice day.

kaB00M

  • Full Member
  • ***
  • Posts: 101
    • View Profile
    • Caffeware
    • Email
Re: Isometric Hexagonal Tile Map
« Reply #1 on: January 07, 2013, 11:51:27 pm »
Looks awesome for a rts!  ;)



Gan

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Re: Isometric Hexagonal Tile Map
« Reply #2 on: January 08, 2013, 09:41:30 am »
That looks way sweet. The style reminds me of an old MMO I use to play:


I love how your tiles merge seamlessly and you can vary the height.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: Isometric Hexagonal Tile Map
« Reply #3 on: January 08, 2013, 04:11:31 pm »
Wow this is awesome! :o
I'd love to see some code to this.

So do you use 3D geometry or how did you achieve it?

By the way, thanks to Laurent for making SFML. I fell in love with it. Is that wrong?
I don't thinks so, although I wouldn't say that to non programming people, they might find it awkward. ;D

That looks way sweet. The style reminds me of an old MMO I use to play:
I don't see the connection... ???
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: Isometric Hexagonal Tile Map
« Reply #4 on: January 08, 2013, 05:20:58 pm »
Really cool. Are the elevations purely isometric, too?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

AFS

  • Full Member
  • ***
  • Posts: 115
    • View Profile
Re: Isometric Hexagonal Tile Map
« Reply #5 on: January 08, 2013, 05:30:41 pm »
Looks awesome for a rts!  ;)

Thanks :)

My idea was to make an RPG without spliting the map into sections. I just wanted a big map that you could explore without interruptions. But this is just a map editor, so on paper the map may be useful for anything from an RPG to an RTS to a top down shooter or whatever.

I love how your tiles merge seamlessly and you can vary the height.

For the tiles merging between types I used a very, very dirty trick. Instead of making special tiles for combinations (that would have been a nightmare), I did this for every single tile:



So, when two different types of tile are next to each other, they "blend". It doesn't look as good as making especial tiles containing the combination, but it saves A LOT of work.

And about the height and elevations... arggg, screw them. They are incredibly frustrating, but at least I'm almost done with them. You can notice in the video some misplaced slopes, that's what I need to fix.

Wow this is awesome! :o
I'd love to see some code to this.

I don't feel like sharing the whole code yet, because I'm new to programming (and thus bad at it), the code is a mess. But if you want to know how I did something specific, just ask and I'll share the code and try to explain it.

So do you use 3D geometry or how did you achieve it?

Well, I made the slopes in 3D and then render them to create the images, if that's what you meant. Using 3D is a huge time saver, because generating more terrains is as simple as appliying the image to the objects and then render, and bam, you get the whole tile set for that type of terrain.

Here's the sprite sheet to the different slopes.


Now, applying them in the correct order is the tricky part, because you need to check all six of the adyacent tiles to choose which of all these 18 slopes is the correct one. As you can see in the video, there are a lot of misplaced slopes, so it need a lot of work (which is the reason I don't want to share the executable yet).

I don't thinks so, although I wouldn't say that to non programming people, they might find it awkward. ;D

Thanks for the advice :P

Really cool. Are the elevations purely isometric, too?

Indeed, everything is isometric. I just made them in 3D and render them with an isometric camera.  ;)

As soon as I finish with the elevations I'll share the .exe so you people can check it out. If you have any terrain texture or object and want to add it to the editor just post it and I'll add it, just for fun.
« Last Edit: January 08, 2013, 06:07:10 pm by AFS »

 

anything