loading terrain information

Blitz3D Forums/Blitz3D Programming/loading terrain information

L&L(Posted 2003) [#1]
Im making a mapmaker for my game and ive made it so that each terrain is stored in a certain file holding the positions of each objects and what textures go where. I also have it so that the terrain file contains "points" where the terrain height changes. when the program loads this file it reads what points are set to what height and automatically rounds them off to make them look like hills, mountains etc. with a function i have written. is this faster/more convenient to use than other methods?


semar(Posted 2003) [#2]
is this faster/more convenient to use than other methods?

Well, seems a good way to me. I assume you do this at the beginning of the game, I mean, you first 'prepare' the terrain, and then show it.

If so, and if is fast enough, I would stay with it.

Anyway. If the terrain modifications are always the same, and does not change during the game, you could think to modify directly the heightmap accordingly, so later you do not need any other rounding.

You could modify the heightmap on the fly, plotting a lighter color where the terrain should be higher, directly on the heightmap file.

I would not bother though. Seems to me a valid method.

Sergio.