linepick's so usefull!, though i wouldnt have though of using it here.
Using Line Pick to align the grass:
-set the areas EntityPickMode() to a mesh obstructing one (of course)
-for each square bound area of terrain you want to cover
eg:
grass=loadmesh("Grasspiece_thats_30x30.3ds")
for u=0 to 30
for v=0 to 40
linepick(30*u,1000,30*v,0,2000,0)
x=pickedx():y=pickedy():z=pickedz()
;newgrass points to a different entity each time:
;doin it like this emans i xcant access individual grasses though, so i suppose youll be using a type or array or bank
newgrass=copyentity(grass):positionentity newgrass,x,y+10,z
next
next
positions a grass model (grid aligned 30*30 apart) at each point on the terrain.
you could put in Random factors or checking the values of u and v to randomly or less ['grid like']ly positioning of the grass meshes.
--Hope this Helps
Using Line Pick to align the grass:
-set the areas EntityPickMode() to a mesh obstructing one (of course)
-for each square bound area of terrain you want to cover
eg:
grass=loadmesh("Grasspiece_thats_30x30.3ds")
for u=0 to 30
for v=0 to 40
linepick(30*u,1000,30*v,0,2000,0)
x=pickedx():y=pickedy():z=pickedz()
;newgrass points to a different entity each time:
;doin it like this emans i xcant access individual grasses though, so i suppose youll be using a type or array or bank
newgrass=copyentity(grass):positionentity newgrass,x,y+10,z
next
next
positions a grass model (grid aligned 30*30 apart) at each point on the terrain.
you could put in Random factors or checking the values of u and v to randomly or less ['grid like']ly positioning of the grass meshes.
--Hope this Helps