I havent looked at code yet, I'll do that later.
OK, a bit of testing shows that MED doesnt like terrains larger than 65535 x 65535 quants.

EXAMPLE 1 :: Initial Scaleing Run.
So, if we scale to a VERY rounded version of that(65000), and go 1quant = 1 meter, then we
get a MED-limited terrain maximum of 65KM x 65KM. Plenty big enough. (so it seems, read on).
Now we scale our tank by that and we end up with a model that is approx 12x5x5 quants.
That doesnt leave much space for collision calculations. NEED MORE!!!

Backtrack...
So if leave our med terrain as 1quant = 1meter, but IN_GAME scale it up by a factor of 10,
(note: you cant in-game scale terrains much more than 10 or they start lookin too chunky)
that will then make it 10 quants = 1 meter, read as 1quant = 10centimeters.
Now we scale our tank to that and we get 120x50x50 quants, better. And hopefully enough.

EXAMPLE 2 :: But for learning purposes, assume its not enough. Still too small!!!
Start Again....
Now lets try again, this time callin our original terrain scaling 1quant = 2meters
(thereby MED limited to 32.5km x 32.5km), and in-game-scale it up by 10,
then our tank would be 240x100x100 quants. Definately good enough, but more careful
thought is required matching scales of everything. But you see the concept?


Lets ASSUME we've settled on the scales of Example 1.
That is, our overall scale is 1quant = 10cm.
1> Open the tank in MED, go EDIT-ScaleModelGlobal. Put in one of the new sizes,
being 240 or 100. Then hit the tab-key and the other numbers will self-ajust.
If you put the right number in the right box(all number match expected), hit OK and save.
2> The terrain doesnt need changing in this case, but theoretically,Open the
terrain in MED, go EDIT-ChangeTerrainSize. Put the width (divided by 10 remember)
into the 'Terrain Size Horizontal' box, hit tab-key and fill the 'Terrain Size Vertical'
box with the height (divided by 10 remember) and hit tab. The face sizes will self adjust.

God, I think this will do for one post, only just noticed how big its got.



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial