Terrain?

BlitzMax Modules Forums/MiniB3D/Terrain?

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.

It is a real Terrain loaded of a pregenerated Heightmap.

Terrain commands:
LoadTerrain:TTerrain(URL:String,Chunksize:Int = 64)
PositionTerrain(Terrain:TTerrain , X:Float , Y:Float , Z:Float)
ScaleTerrain(Terrain:TTerrain , X:Float , Y:Float , Z:Float)
TextureTerrain(Terrain:TTerrain , File:String , Layer:Int = 0)
TerrainY(Terrain:TTerrain,X:Float,Y:Float,Z:Float,Mode:Int = 1)

The mode parameter in TerrainY stays for the method used to get the y height value.

0 = Very fast (interpolated Heightmap Values) but not very accurate
1 = Medium speed but very accurate (uses LinePick)
2 = Slow but most accurate (calculates the exact height on tri)