Terrains - non-walkable areas (slopes)

Blitz3D Forums/Blitz3D Programming/Terrains - non-walkable areas (slopes)

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.

Are you creating the terrain using a heightmap? If so create another bitmap the same same size and simply paint a particular colour for where you can walk and other colour for where you can't. You can read that bitmap into an image and read pixels depending on where your character is?

You could use any number of key colours to indicate different terrain - water, sand, swamp, forest etc.