Re:Procedural world generation: C++11 library with highly cu...
by eiskalt on Wednesday July 27, 2016 @08:14AM
(#12172132)
Yes, this library does not generate random shaped buildings or terrain regions. Instead, it generates them from real geographical data and allows you specify some noise parameters, e.g. :
canvas|z16 {
grid-cell-size: 5%; /* affects triangulation*/
max-area: 0.05%; /* affects triangulation refinement */
color-noise-freq: 100000; /* color of each vertex will use this noise value */
ele-noise-freq: 100000; /* height of each vertex will use this noise value*/
color: gradient(#dcdcdc 0%, #c0c0c0 10%, #a9a9a9 50%, #808080); /* color gradient*/
}
Also, some objects can be randomly generated for specific place, e.g. trees in forest. I found this idea where you have real geodata as input for randomization more interesting than having yet another planet generator with manual setting of various parameters.
canvas|z16 {
}Also, some objects can be randomly generated for specific place, e.g. trees in forest. I found this idea where you have real geodata as input for randomization more interesting than having yet another planet generator with manual setting of various parameters.