Endless Seamless Terrain

Endless Seamless Terrain

Endless Seamless Terrain.

This script creates terrain from a heightmap, creates a field from 9 terrain pieces, prepares heights, textures, alphamaps. While player is moving, script dynamically replaces terrain pieces and combines them to make endless seamless terrain field.

Script uses: - one heightmap texture (generate clouds, noise, etc. with GIMP, Photoshop), must be bigger than base terrain size - one base terrain with width and length multiple of 128, 256, 512, etc - four terrain textures with width and height multiple of 32, 64, 128, 256, etc

For demonstration purposes were made 3 scenes with different parameters and textures. Just press the button “Enter” and change the scene.

This script was written in C# and commented. There is a description file in project, where you can see explanations about script.

First Person Controller was taken from Standart Terrain Assets just for demonstration. You can use your own player conroller. SkyBox was taken from Standart Terrain Assents. Texture Set1 was taken from Standart Terrain Assets. Texture Set2 was made with programm Genetica Viewer. http://www.spiralgraphics.biz/packs/usage_rights.htm You may use the preset and pack textures in both commercial and noncommercial projects such as games, movies, publications, and artwork.