How can I add sediments that follows map topography?

Post Reply
User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

How can I add sediments that follows map topography?

by texmex » Post

I want to use the stratum ore type to generate sedimental layers of various thickness. Just like in the picture, I want the stratum shape to follow the topography of the world. I imagine it will be possible by imitating the mapgen noise somehow, but I haven't used Perlin noise before and don't know how. Any ideas?

Since stratum ore type seed cannot be made to imitate map topography, how can this be achieved?

Image

Edit: Title was originally ”How can I match stratum seed with world topography?”
Last edited by texmex on Fri Nov 23, 2018 15:16, edited 5 times in total.

User avatar
Krock
Developer
Posts: 4650
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: How can I match stratum seed with world topography?

by Krock » Post

Do you mean something like this masterpiece of mod? viewtopic.php?t=20066
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: How can I match stratum seed with world topography?

by texmex » Post

I can't see much of the sediments in the screenshot except for in one of them which do seem to inherit its shape from the topography. So yes, something like in that mod, I think. However, from peeking the code, it isn't done by the stratum ore type.

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: How can I match stratum seed with world topography?

by paramat » Post

Perlin noise is random so it's impossible to make the stratum ore API follow the world terrain.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: How can I match stratum seed with world topography?

by texmex » Post

I’m disappoint. Any other method? Multiple mapgen ”fill” nodes?

User avatar
paramat
Developer
Posts: 3700
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: How can I match stratum seed with world topography?

by paramat » Post

A mod can do it.
Replicate in the mod the terrain noise you want to match to, then place ores relative to that noise.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: How can I match stratum seed with world topography?

by texmex » Post

I wouldn’t know how to do that but thank you for the direction. I’m not looking to place ores specifically but sediments. And the stratum is so handy.

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests