Terrain question

Blitz3D Forums/Blitz3D Beginners Area/Terrain question

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.

You can't. A .b3d file is not a terrain. A 'terrain' is merely a picture, a heightmap its called. It uses the red element of each pixel to determine the height of the ground. The brighter the colour, the higher the ground. You can draw a heightmap yourself in anything from MS Paint upwards. It has to be square and must be 2^x, so 16x16, 32x32, 256x256 etc.

Unsurprisingly, you use LoadTerrain() to load a terrain. You can then scale it vertically if you want the 'mountains' and 'valleys' to be more pronounced.

Use the edit button. Don't post five times in a row in the same thread. It annoys people.