How to use the float value from Noise function in voxel terrain?
Posted
by
therealjohn
on Game Development
See other posts from Game Development
or by therealjohn
Published on 2012-11-18T03:57:46Z
Indexed on
2012/11/18
5:19 UTC
Read the original article
Hit count: 295
unity
|perlin-noise
Im using Unity, although this question is not really specific to that engine.
Im also using an asset from the store called Coherent Noise. It has some neat noise functionality built it.
I am using those functions to produce some noise values. I am getting a value between 0 and 1 (floats).
I have an array of blocks (for minecraft like voxel terrain) and I am confused on how to use this float value for terrain?
Do I do something like <= 0 == Solid block etc etc?
I am confused on how to use the floating values that the noise functions produce to use for height values of an array of say a height of 16.
Thanks for any guidance.
© Game Development or respective owner