Diamond-square mountain landscape generation
Diamond-square mountain landscape generation
Hello!
I'm writing mapgen, which creates landscapes with diamond-square algorithm. It can create realistic mountains and hills.
Now i have implemented creation of volcanic islands (on attached image) with this algorithm
https://github.com/minetest/minetest/pull/11216
I'm writing mapgen, which creates landscapes with diamond-square algorithm. It can create realistic mountains and hills.
Now i have implemented creation of volcanic islands (on attached image) with this algorithm
https://github.com/minetest/minetest/pull/11216
- Attachments
-
- island.jpg (740.03 KiB) Viewed 995 times
-
- island.jpg (633.01 KiB) Viewed 995 times
-
- island.jpg (618.6 KiB) Viewed 995 times
-
- Member
- Posts: 172
- Joined: Sat Mar 27, 2021 22:06
- In-game: DOOM_possum
Re: Diamond-square mountain landscape generation
wow, that's a sick One
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Diamond-square mountain landscape generation
Looks cool so far, with some decorations and some vertical biomes (tree line, snow cap) this would be a pretty decent mountain. Maybe add a setting for the maximum and minimum height of generated mountains (biomes should scale accordingly). I'd love to see realistically high mountains (3000-8000 nodes), not everywhere but in some places this would be pretty cool.
Needs something that worth climbing the mountains, though. Either inside (some ores) or on top (hidden chest with awesome loot?).
Needs something that worth climbing the mountains, though. Either inside (some ores) or on top (hidden chest with awesome loot?).
Re: Diamond-square mountain landscape generation
It's not a problem to generate such big mountain, but it's a problem to display it whole. Minetest became VERY slow on huge areas with visible nodes. Even landscapes with mountains with height=500 can not be displayed with normal FPS if you set infinite view range distance
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Diamond-square mountain landscape generation
Yes, it's a pity that MT has such heavy performance issues (did some long-term testing some time ago and came to the conclusion that everything larger than roughly 300 nodes causes various issues regardless of other settings). Super high mountains would be cool anyways.vladts wrote: ↑Wed Apr 21, 2021 07:50It's not a problem to generate such big mountain, but it's a problem to display it whole. Minetest became VERY slow on huge areas with visible nodes. Even landscapes with mountains with height=500 can not be displayed with normal FPS if you set infinite view range distance
- sorcerykid
- Member
- Posts: 1847
- Joined: Fri Aug 26, 2016 15:36
- GitHub: sorcerykid
- In-game: Nemo
- Location: Illinois, USA
Re: Diamond-square mountain landscape generation
That would be an astounding accomplishment, if it's truly possible! I'm imagining a fog-like silhouette for distant nodes (no textures, just a solid color with translucency based on distance), I'm sure that would dramatically reduce the rendering overhead, and would permit significantly greater viewing range.
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Diamond-square mountain landscape generation
It once was but it was a bad implementation and eventually was removed due to incompatibility with more recent world generators.sorcerykid wrote: ↑Wed Apr 21, 2021 15:51That would be an astounding accomplishment, if it's truly possible!
But that’s not my point.
Just imagine this: https://www.youtube.com/watch?v=apXAoyKkjDs
Re: Diamond-square mountain landscape generation
There are not always fog in mountainssorcerykid wrote: ↑Wed Apr 21, 2021 15:51I'm imagining a fog-like silhouette for distant nodes (no textures, just a solid color with translucency based on distance)
Re: Diamond-square mountain landscape generation
About displaying far away areas, i think at distance, where 16x16 block looks small enough, we can display it as single block (like on the video above). It will decrease displayed cubes in big areas in about 16*16*16=4096 times, and allow to significally increase viewing distance
Re: Diamond-square mountain landscape generation
Or like this:
- Attachments
-
- smooth.jpg (231.2 KiB) Viewed 995 times
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Diamond-square mountain landscape generation
It was removed on 0.4.8 release in 2013 because it was broken.
- freshreplicant
- Member
- Posts: 229
- Joined: Sun Aug 09, 2020 10:37
- In-game: freshreplicant
Re: Diamond-square mountain landscape generation
Had a look at the other videos - wow. That is impressive stuff. Wonder if it will be open source? Looks like he runs Windows, so it might not run natively on Linux either.Linuxdirk wrote: ↑Wed Apr 21, 2021 18:30It once was but it was a bad implementation and eventually was removed due to incompatibility with more recent world generators.sorcerykid wrote: ↑Wed Apr 21, 2021 15:51That would be an astounding accomplishment, if it's truly possible!
But that’s not my point.
Just imagine this: https://www.youtube.com/watch?v=apXAoyKkjDs
Re: Diamond-square mountain landscape generation
It looks like heightmap. Yes, this can not work with more complex landscape
Re: Diamond-square mountain landscape generation
mountain range
- Attachments
-
- range.jpg (660.31 KiB) Viewed 995 times
- Linuxdirk
- Member
- Posts: 3219
- Joined: Wed Sep 17, 2014 11:21
- In-game: Linuxdirk
- Location: Germany
- Contact:
Re: Diamond-square mountain landscape generation
Can you generate lakes in the mountains or only at sea level? Mountain lakes would be awesome!
Re: Diamond-square mountain landscape generation
Now i simply fill all air with height <= 5 with water. To create mountain lakes i need to write code to detect places, where they are possible
Re: Diamond-square mountain landscape generation
Also I think that it would be useful to allow to create mountain after map is generated. So there should be some API for calling mapgen from lua. Is it possible now?
Who is online
Users browsing this forum: apercy and 20 guests