Fractal landscape generation with diamond-square algorithm

버전 1.0.0.0 (3.56 KB) 작성자: Huseyin Kaya
The MATLAB implementation of diamond-square algorithm to create fractal landscapes.
다운로드 수: 864
업데이트 2013/12/17

라이선스 보기

This is a small MATLAB function to generate a fractal landscape by using diamon-square algorithm. The algorithm is actually very old but I learned it on the Paul Martz's "Generating Random Fractal Terrain" page (http://www.gameprogrammer.com/fractal.html) He also gives a C program but I was too lazy to compile it, install developer tools, compilers etc. So I decided to write a simplified version. The features are:

1. It is a single MATLAB file: fractal_landscape.m
2. If you run it, you will see a small animation of diamond-square algorithm.
3. If want to increase the resolution, just increase the maxiter parameter to 8 or 9.
4. I believe the comments inside the codes are very usefull to understand the algorithm.
5. It also create a POVRAY output of the landscape so that you can render it POVRAY if you want to.

Have fun

인용 양식

Huseyin Kaya (2026). Fractal landscape generation with diamond-square algorithm (https://kr.mathworks.com/matlabcentral/fileexchange/44714-fractal-landscape-generation-with-diamond-square-algorithm), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2012b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Data Analysis에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0