Hello,
I am programming a tool to show 3D flightpaths over time in Germany. There, I present tiles of 1 deg x 1 deg and reload height data when the tile is changed.
That worked fine with 7.77, with 7.80 I have vertical gaps at each 32nd vertex. I know that terrain_chunk is set to 32 by default and that the manual states that the terrain size of nonchunked terrain is limited. When I set terrain_chunk to 0 or to 456 (I need 449 height points square), I get a runtime error due to excessive size.
Maybe this is no bug, but what can I do when I need more than 256 vertices and want to deform? It worked with 7.77.
See example pictures at:
Example pictures and here is the code loading and applying the height data:
if (fileHandle != 0) {
file_str_read (fileHandle, tileName);
tileNx = file_var_read (fileHandle);
tileNy = file_var_read (fileHandle);
tileE0 = file_var_read (fileHandle);
tileE1 = file_var_read (fileHandle);
tileN0 = file_var_read (fileHandle);
tileN1 = file_var_read (fileHandle);
tileMin = file_var_read (fileHandle);
tileMax = file_var_read (fileHandle);
for (y=1; y<tileNy; y++) {
for (x=1; x<tileNx; x++) {
i++; // vertex counter, starts with 1
hQuant = file_var_read (fileHandle) / 10;
elev[i] = hQuant;
}
drop = file_var_read (fileHandle); // only need 449 points at row
}
file_close (fileHandle);
wait(1);
i = 0;
for (i=1; i<201602; i++) { // 449*449 = 201601, avoid duplication
c = ent_getvertex(Tile,NULL,i);
c.v.y = elev[i] * hFac; // raise the vertex (y is the height in DX coordinates)
ent_setvertex(Tile,c,i);
}
}
else {
set (debug, VISIBLE);
thanks in advance
Henning