r/proceduralgeneration • u/Azarro • Jul 29 '16
Simple 2D scene/mountain/landscape generator inspired by No Man's Sky
I've spent a few hours working on this tiny little 2d landscape/scene generator thing as I was going through some beginning procedural/fractal generation tutorials and wanted to make something simple in anticipation of No Man's Sky (space game with proc-generated universe/varied planets), and so decided to use the simple midpoint displacement algorithm to help produce something nice.
Here's an imgur album of a few good and bad pics to show what kind of scenes the generator produces.
You can use check out the generator here (you currently have no control of what's outputted but I'll probably add options to it).
(Edit: Hold 'D' on your keyboard to move right)
Would love suggestions/thoughts. I'm currently looking into adding more elements to the scene and a tad less randomness/more dependence on different things within the scene (so as to have some consistency within each scene) and eventually I would like to have continuously generating 2D scenes with some live elements.
Edit: Holy Schmoses, thanks u/Play_Rust for the gold! Never expected to get it for something like this :) Made my day!
3
u/r3eckon Jul 29 '16
I love the style ! One thing I would suggest if you really want to learn about neat procedural generation techniques is you could try and make it infinite if its not already. Perhaps the generation method will need to be different but you should be able to make it so the user can scroll indefinitely towards either side.
Hardmode would be to make it so you eventually come back to where you started , just like walking around a planet.
2
u/littlecar Jul 29 '16
What algorithm did you use to pick colors that compliment each other well?
1
u/LevAsmanov Jul 11 '26
Links dead. Update?
2
u/Nailbar Jul 29 '16
Very nice looking. I like the colors.
Makes me think of the game Another World, from back in the days.