Malice,
Why don't you create a 512 x 512 heightmap but keep the original 256 x 256 in the middle and copy sections of it to pad out the bigger one. Then you only need one terrain. Basically then you can use something like this (haven't tested as at work) ...
Not sure if this makes sense but I have an code example of this if you want and it works quite well.
Stevie
Why don't you create a 512 x 512 heightmap but keep the original 256 x 256 in the middle and copy sections of it to pad out the bigger one. Then you only need one terrain. Basically then you can use something like this (haven't tested as at work) ...
If player_x < 128 player_x = 384 + ( player_x - 128 ) if player_x > 384 player_x = 128 + ( player_x - 384 )
Not sure if this makes sense but I have an code example of this if you want and it works quite well.
Stevie