View Full Version : Random terrain creating
03-31-2005, 03:14 PM
I am looking for a great terrain creating algorithm. Terrain will not be so complex. It will be smooth then i will try to make my object able to move on that terrain . Can you advice such an algorithm. I found circles algoritm , do you have any idea about this algoritm.
03-31-2005, 03:23 PM
here's some explanation on the circles algorithm circles (http://www.lighthouse3d.com/opengl/terrain/index.php3?circles)
for an easy way to generate terrains you could use a heigthmap
03-31-2005, 05:16 PM
Can you explain me the height map ?
Do they have the x,z values and heights for each x,z ? Is this a height map
is a heightmap. A simple grayscale image, black (0x00) is the lowest and white (0xFF) the highest point.
04-01-2005, 11:32 AM
a height map is a grayscaled image, where black means the lowest height and white is the highest. depending on how high you want the 'hills' to be is the whiter its going to be.
04-03-2005, 07:20 AM
A heightmap is simply a one or two dimentional array of VECTORs (x,y,z values) which is used to render the terrain. The height, or y values, can be generated from various algorithms like the circle, mid-point displacement, fault line, fluid simulation, hill, or from an image like those above. With the image approach you first load the image into memory (probably a 2d array also, but not VECTORS) and read off the greyscale color for each pixel and set the y value of the corresponding vertex in your heightmap.
I have a working demo you can download if you are interested, which generates a small terrain using fluid, fault, hill, mid-point, image load, and a home gown algorithm. It's a very simply test harness, so nothing too fancy, but it does demonstrate what types of terrains they generate. I might plug in that circle algorithm also.
04-04-2005, 11:58 PM
Where can I download your sample?
[QUOTE]Originally posted by Fahrenheit451:
04-05-2005, 07:30 AM
The skybox textures I made with terragen make the thing bloated unfortunately - hi-res bmp's :-(
Lighting sucks, some bugs. Your milage may vary :-)
F1 for help menu
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.