This is kind if a follow up to an earlier post I had on masking terrains.
<
http://forums.planetside.co.uk/index.php?topic=1232.0>
In that post the solution for combining multiple terrains of differing resolutions was to check "Flatten first" in the displacement tab of the the heightfield shader. While it fixes one problem, it also creates another one because the underlying terrain is not set to an altitude of 0, but rather a Y value of 0 which creates a flat terrain. This isn't too much of a problem for smallish terrains, it is when you get ambitious.
[attachthumb=#2]
20 degree terrain with flatten first
[attachthumb=#1]
Same terrain without flatten first
While the second image is obviously what you want, if you add another smaller/higher res terrain in the centre there is no way to merge the two terrains (that I know of). If you select flatten first on the second terrain, it's edges will be markedly higher than the adjoining terrain. The only way I can see of doing this in the current version is to have flatten first turned off, and mask the terrains, but this doesn't appear to be straight forward.
Is the behaviour of "Flatten first" going to change to use an altitude of 0 rather than Y = 0 (or as an option) in future?
... needless to say I've been thinking about something along the lines of the Mars animation demo on the Planetside site, but using an Earth based terrain. As it's a bit more recognisable the detail of the launch/landing site needs to be pretty good. While my tiled terrains provide the coverage and resolution required, I'm still at a loss to fit them nicely onto the planet properly...
And while I'm here.... here are some demos of the joins between terrains (all using flatten first).
1 degree (10m DEM) and 20 degree (90m SRTM), 0 blending
[attachthumb=#3]
1 degree (10m NED) and 20 degree (90m SRTM), 0.1 blending
[attachthumb=#4]
The difference in altitude is to be expected with the smoothing of the data for the lower res terrain, so providing intermediate resolutions helps to reduce this. With the default blending it looks pretty good, given that it is not intended for the camera to be so close to the low res terrain.
0.5 degree (10m NED) and 1 degree (10m NED), 0 blending
[attachthumb=#5]
Only a very small difference, and with blending on it's almost impossible to pick. Using 30m NEDs as an intermediate before 90m SRTM also helps to reduce the difference. For my US terrains I use 10m NEDs for the first 3 degrees, then 30m NEDs to 10 degrees and then 90m SRTM for anything bigger.