Page 11 of 29

Re: Wilderness Overhaul

Posted: Thu Feb 25, 2021 9:03 pm
by BadLuckBurt
Daniel87 wrote: Thu Feb 25, 2021 8:48 pm The tricky part is, figuring out the min and max height of terrains from a specific climate zone.
The starting height of a map pixel is determined by the heightmap, not the climate zone.

There is CalcAvgMaxHeightJob in the TerrainHelper.cs which sets the max height and the average height for a map pixel but I don't think there's a way to retrieve the min height atm. At present it seems that data is only used to smooth out location tiles. There's no reason the function couldn't be expanded to include the min height I think but maybe I'm unaware of certain issues.

Re: Wilderness Overhaul

Posted: Thu Feb 25, 2021 9:06 pm
by Daniel87
BadLuckBurt wrote: Thu Feb 25, 2021 9:03 pm
Daniel87 wrote: Thu Feb 25, 2021 8:48 pm The tricky part is, figuring out the min and max height of terrains from a specific climate zone.
The starting height of a map pixel is determined by the heightmap, not the climate zone.

There is CalcAvgMaxHeightJob in the TerrainHelper.cs which sets the max height and the average height for a map pixel but I don't think there's a way to retrieve the min height atm. At present it seems that data is only used to smooth out location tiles. There's no reason the function couldn't be expanded to include the min height I think but maybe I'm unaware of certain issues.
I tried the approach of using the whole MapPixels height value, but this will create sharp edges along the MapPixels borders. Now I am using the individual tiles height to decide the parameter for the noise. So far works pretty well :)

Re: Wilderness Overhaul

Posted: Thu Feb 25, 2021 9:34 pm
by BadLuckBurt
Daniel87 wrote: Thu Feb 25, 2021 9:06 pm Now I am using the individual tiles height to decide the parameter for the noise. So far works pretty well :)
Those are probably the most accurate heights you can get. I'm still looking forward to the release of this, I don't suppose you have a code repository for it online?

Re: Wilderness Overhaul

Posted: Thu Feb 25, 2021 9:39 pm
by Daniel87
I do :)

But currently, a lot is not working, since I commented it out to first finish the TerrainTexturing. And since I am a hobby coder, it might be spaghetti code and most likely can be done in easier and faster ways. ¯\_ (ツ)_/¯

https://github.com/Bl4ckh34d/daggerfall ... s-overhaul

Re: Wilderness Overhaul

Posted: Thu Feb 25, 2021 9:55 pm
by BadLuckBurt
Thanks for the link. My own code isn't any better but I'm curious about your approach, I can handle spaghetti code ;) I'll take a look over the weekend and probably pop back in with some questions.

Re: Wilderness Overhaul

Posted: Sun Feb 28, 2021 9:37 pm
by Midknightprince
The plot thickens..........

Re: Wilderness Overhaul

Posted: Tue Mar 02, 2021 9:15 am
by Daniel87
Hi everyone,

new update:

I got around to write a small function that checks the terrain of desert climates for local minima in the heightmap before tiling the ground with water.
This way I can make sure that an Oasis will only spawn at the locally lowest point in the terrain and not at a hill side or mountain top. Yay!

One huge problem still remains: I need to find a way of accessing the terrains slope within ITerrainTexturing.cs
Without it, my mod will not be compatible with Interesting Terrain and any other heightmap mod that is altering the original heightmap completely and also utilizes the terrain texturing. My mod will have to be placed after these mods so the texturing works properly, but then the mountains in Interesting Terrain look weird, as in that mod, steep slopes get textured with rock texture. Once I am able to access the slope, I can do the same and basically make them compatible with my mod. Texturing is essential as it tells the other script, where to place trees, rocks and flowers, etc.

As always, here some screenshots:
Spoiler!

Image

Image

Image

Re: Wilderness Overhaul

Posted: Sat Mar 06, 2021 11:44 pm
by King of Worms
Great progress. Dedication solves all the issues 😊

Re: Wilderness Overhaul

Posted: Mon Mar 08, 2021 5:00 pm
by l3lessed
I love it. Man, if we could only get rivers and creeks to generate properly.

Re: Wilderness Overhaul

Posted: Fri Apr 09, 2021 6:36 pm
by carademono
How's this one coming along? I'm really excited for it!