Blitz terrain

Blitz3D Forums/Blitz3D Programming/Blitz terrain

>Whats the best way of making an infinite terrain then as
>copyentity doesnt seem to work on it

Forget about terrains alltogether.

How infinite do you need it?

City size? Global size?

Generally you can do a 3x3 or 5x5 matrix of mesh-tiles.

EDIT: The 3x3 or 5x5 matrix is only what you can see. Then you have to do some work in the background to create new tiles and to erase old tiles as you go. This means that the tiles can be very small individually.

To begin with you place the central tile centered to 0,0,0 and as you move around you center the world coords to the tile you are on regularly(EDIT: you basically move the world around you). Then you kill off the tiles which are no longer in the matrix and create new tiles which have just moved into the matrix.

Generally you can cover a very large playing area by keeping the data in a bank or using more memory, as an image. If memory is a concern or you need a truely massive world, then dynamic loading of tiles is a very good way to achieve this.

If you are creating a planetary landscape then you need to approach this very differently so I'll leave it at that.


Andy