SFML community forums
General => SFML projects => Topic started by: Kyoukan97 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
-
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
-
Good job, man.
It looks really good, perhaps you can use it for some kind of game.
-
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
-
Wow! I really like the visual style this has.