Okay I'vegot something really cool working with the advanced terrain demo. It's a bit like treemagik's grass, which fades off and positions itself around the player.
You'll need a grassy texture,
Put this before the main loop:
load image "grass.png",90
dim treealpha(200)
for t = 1 to 200
o = t + 1000
make object plain o,0.5,0.5
position object o,rnd(500),0,rnd(500)
scale object o,500,500,500
set object transparency o,2
yrotate object o,rnd(360)
texture object o,90
a# = get terrain ground height( 1, object position x(o), object position z(o) )
position object o,object position x(o), a#+0.25, object position z(o)
treealpha(t) = 100
next t
make object sphere 4,1
And this in the main loop:
position object 4,camera position x(),camera position y(),camera position z()
for t = 1 to 200
o = t + 1000
if object in screen(o)=0 then yrotate object o,camera angle y()
if object distance(4,o) > 100
dec treealpha(t)
else
inc treealpha(t)
endif
if object distance(4,o) > 100 and treealpha(t)<1
nx# = camera position x()+(rnd(200)-100)
nz# = camera position z()+(rnd(200)-100)
a# = get terrain ground height( 1, nx#, nz# )
position object o,nx#, a#+0.25, nz#
inc repos
endif
if treealpha(t) > 100 then treealpha(t) = 100
set alpha mapping on o,treealpha(t)
next t
It is horrible and uncommented though