3D terrain thingi

Blitz3D Forums/Blitz3D Programming/3D terrain thingi

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am working on a large terrain myself and I place all
objects on the terrain with the following format:

PositionEntity Ent01,xx,TerrainY(Terrain,xx,0,zz)+80,zz

The +80 can be adjusted to get just the right hight.

For tt = 1 To trees
Treeb(tt) = CopyEntity(Ent01) ;another tree
RotateEntity(Treeb(tt),-90,Rnd(0,320),0)
xx=Rnd(10,rd)
zz=Rnd(10,rd)
ScaleEntity Treeb(tt),4,4,4
PositionEntity Treeb(tt),xx,TerrainY(Terrain,xx,0,zz)+80,zz
Next

use this to place many copied trees on the terrain.