cubiomes icon indicating copy to clipboard operation
cubiomes copied to clipboard

How to access climate parameters values

Open Rayerdyne opened this issue 1 year ago • 1 comments

Hi there !

For my project I want to access the "climate maps", that is the arrays of climate parameter values, namely temperature, humidity, continentalness, erosion, depth and weirdness. I found sampleBiomeNoise which I use with the BiomeNoise member in the Generator struct, and get the values I want from the np pointer argument.

However, the values I get this way differ from the typical ranges that are reported in the wiki, taking into account the 10000 factor. E.g. for temperature I expect "about from -2.31 to +2.31", but the [min, max] values when browsing 200 seeds over 500×500 scale 16 range lie around [-1.07, 0.96] (maybe I don't have enough data ?)

So, I'm questioning how to use sampleBiomeNoise, in particular the sample_flag input, for which I'm confused about its effect on px and pz thus on subsequent sampling. I beleive it is set to SAMPLE_NO_SHIFT when called via genBiomesgenBiomeNoiseScaledgenBiomeNoise3D, but I dont get what it does. I redo the test, setting the flag to that value but it didn't change the results I obtained.

I think I could also use sampleClimatePara 6 times, but to me it looks like it would make the same result.

Rayerdyne avatar Sep 07 '23 08:09 Rayerdyne