I'm stuck...

Blitz3D Forums/Blitz3D Programming/I'm stuck...

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.

I think this is your issue is ...

If your heightmap is 64 x 64 pixels you can only have 0 ... 63 height points rather than 0-64 which you seem to be doing.

In your getcolor section your also going from 0-64 so the last heightpoint cannot be read as it's outwith the image.

I would also recomment using unwelded quads to build up the terrain so that it can be textured per quad .. it also makes the terrain easier to build.

Stevie