Fractal Terrain Generation
摘要
In this chapter, we’ll explore terrain generation methods by building a generator in Blender python with the help of numpy. In the first part of the chapter, we’ll go over noise-based methods including value noise with uniform sampling, value noise with noise basis functions, fBm, and the diamond-square algorithm. In the second part of the chapter, we’ll discuss fractal-based methods, such as hybrid multi fractal, multi fractal, and hetero terrain functions. Whether noise or fractal-based, all the generation methods output a grid of elevation values called a height map; therefore, we’ll design the generator so that functionalities common between algorithms, such as interpolation, creating mesh data, and adding modifiers, etc., are implemented once and shared among them.