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

Author Topic: Isometric tile map  (Read 3930 times)

0 Members and 1 Guest are viewing this topic.

Kyoukan97

  • Newbie
  • *
  • Posts: 6
    • View Profile
Isometric tile map
« on: June 22, 2018, 04:21:43 pm »
Hi :)
I am working on a small project for which I need an isometric map, that's being procedurally generated.
For the procedural generation I am using a simplex noise class, provided on this repository ( not mine )
https://github.com/SRombauts/SimplexNoise

Here is the code (no GitHub, I know x) )
https://www.onlinegdb.com/rkeg7K5WQ

Known bugs/things to point out:
- Scrolling direction doesn't adjust to map orientation
- Adding the map orientation onto the look-up index into the height map, has no effect yet, because all the vertices of a tile have the same height( for now )

And here is what it looks like so far :)
https://imgur.com/gQLId42

Simply copy&paste the code + the SimplexNoise.h and SimplexNoise.cpp files
You can scroll the map with WASD and rotate it with R

Feel free to use this code in your projects or simply to mess around
« Last Edit: June 22, 2018, 04:25:43 pm by Kyoukan97 »

Kyoukan97

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Isometric tile map
« Reply #1 on: July 14, 2018, 02:08:42 pm »
Hiho,
I put a little more effort into this project again, so I rewrote the entire code and now the map supports slopes !  :) It's still not fully fledged out but you're welcome to check the code out.

Here's a quick image of what it looks like now:
https://imgur.com/0TEOeyb

And here's the code:
https://onlinegdb.com/By3YPvPX7

Antonio9227

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: Isometric tile map
« Reply #2 on: July 15, 2018, 01:41:40 am »
Good job, man.
It looks really good, perhaps you can use it for some kind of game.

Kyoukan97

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Isometric tile map
« Reply #3 on: July 15, 2018, 12:29:44 pm »
Good job, man.
It looks really good, perhaps you can use it for some kind of game.

Thanks ! Yea I'd like to, but I am really busy with university right now  :-\

Here are some screenshots with some noisier noise  :D
Small map:
https://imgur.com/GjD3YLE

And a big map aswell:
https://imgur.com/b7HLvTQ

Oddly satisfying to play around with noise maps ;D

verdog

  • Newbie
  • *
  • Posts: 25
    • View Profile
    • Email
Re: Isometric tile map
« Reply #4 on: July 15, 2018, 04:06:56 pm »
Wow! I really like the visual style this has.