[Implemented] Better terrain functions
Posted: Sat Oct 13, 2007 12:03 pm
TerrainTexture(worldtexture, detailtexture,DetailTile)
TerrainSize(PageSize,TileSize, MaxMipMapLevel)
TerrainSetHeight(x,z, height)
TerrainGetHeight(x,z)
CreateTerrain(Filename$, [ScaleX, ScaleY, ScaleZ, [Precision]])
CreateTerrainMemory(pointertoimagefile, [ScaleX, ScaleY, ScaleZ, [Precision]])
PickTerrainDistance(maxdistance)
PickTerrain(#camera,x,y)
PickedTerrainX()
PickTerrainY()
PickTerrainZ()
Code: Select all
WorldTexture=main texture
DetailTexture=detail texture
Detail Tile=number of times that the detail texture will be repeated in each terrain tile
Code: Select all
PageSize = nb of quads in terrain
TileSize = nb of quads in each tile (page)
MaxMipMapLevel = number of levels of detail
Code: Select all
Change the height of the terrain in the specified x,z coordinate
Code: Select all
Retrieve the height of the terrain in the specified x,z coordinate
Code: Select all
Material ID is removed from create terrain
Code: Select all
Uses an heigthmap loaded into memory via loadimage
Code: Select all
Sets maximum terrain pick distance
Code: Select all
Checks if x, y coordinate returns true on terrain
Code: Select all
returns X coordinate of picked terrain
Code: Select all
returns Y coordinate of picked terrain
Code: Select all
returns Z coordinate of picked terrain