Trying to get a more understanding about terrain quads, I made a simple example:
step 1: I opened up T.ED, choosed 'new terrain' then Single mesh terrain Large 64x64. Exported it as a heightmap.
step 2: Drew a square shaped image, white with black borders. (This one will later be used as the terrain detail texture.
step 3: Drew another square shaped image, but this time all white (later on used as the terrain texture)
step 4: wrote my little program:
load image "quad.png",terrainTexDetail
load image "white.png",terrainTex
make object terrain terrainObj
set terrain heightmap terrainObj, "h_HM8.bmp"
set terrain scale terrainObj, 32, 32, 32
set terrain split terrainObj, 1
set terrain tiling terrainObj, 1
set terrain light terrainObj, 1, -0.25, 0, 1, 1, 0.78, 0.5
set terrain texture terrainObj, terrainTex, terrainTexDetail
build terrain terrainObj
sc_setupComplexObject terrainObj,1,2
As assumed, the terrain gets very tiled, so you can see all it's quads. I started my player in one corner of the terrain and the walking to the opposite corner. Whilst doing this I counted every quad. My count stopped at 63, even after doing this several times.
Why 63? Shouldn't it be 64?
BEST!
www.memblockgames.com