Terrain Problem

Blitz3D Forums/Blitz3D Programming/Terrain Problem

Can you duplciate a terrain? as in...

ObjMountain(2)=LoadTerrain("graphics/wterrain"+a+".jpg")
M\EntP=CopyEntity(ObjMountain(2))

I've tried to use this in my program and I don't see anything.

I would guess there would be no problem with it..but where are you placing it. You would then have to position the second and subsequent entities somewhere else.

What I'm trying to do is have 5 terrains and have them appear one after the other randomly. That way I have a somewhat randomly generated continuous terrain.

I see no problem with copying the entity and placing it next to the other terrains however there will be a problem at the border between the two/three/four terrains. At the border they will probably not join very well unless the height of the terrain is the same at those edges.

You can't copy a terrain entity. You will have to create separate ones.

I stopped trying to copy the terrain entity and I loaded it twice. They now scroll one after the other and when terrain 1 is behind the camera i put it in front of terrain 2 out of camera visual range.

The border problem was solved by making the border flat. That way I don't even have to worry about seams.

Nuisance about the "can't copy a terrain entity" though.