Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, alibaba), 704 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Gaps in modified Chunked Terrain at Version 7.80. #300162
11/30/09 10:31
11/30/09 10:31
Joined: Jul 2007
Posts: 53
Germany
Henning Offline OP
Junior Member
Henning  Offline OP
Junior Member

Joined: Jul 2007
Posts: 53
Germany
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

Re: Gaps in modified Chunked Terrain at Version 7.80. [Re: Henning] #300173
11/30/09 11:52
11/30/09 11:52
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Please contact Support and send them your project. They'll look into it. I can not confirm a problem with modifying chunked terrain here. But there's a possibility that it only happens with your code or with your particular terrain size.

Re: Gaps in modified Chunked Terrain at Version 7.80. [Re: jcl] #300208
11/30/09 14:44
11/30/09 14:44
Joined: Jul 2007
Posts: 53
Germany
Henning Offline OP
Junior Member
Henning  Offline OP
Junior Member

Joined: Jul 2007
Posts: 53
Germany
Is sent to support@conitec.net.

Henning

Re: Gaps in modified Chunked Terrain at Version 7.80. [Re: Henning] #300288
12/01/09 08:36
12/01/09 08:36
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks, we've got it and will fix it for the next update.

Re: Gaps in modified Chunked Terrain at Version 7.80. [Re: jcl] #300915
12/06/09 22:20
12/06/09 22:20
Joined: May 2003
Posts: 567
Spain, Canary Islands
Felixsg Offline
User
Felixsg  Offline
User

Joined: May 2003
Posts: 567
Spain, Canary Islands
Also the same problem in ged when edit a terrain

Last edited by Felixsg; 12/06/09 22:20.

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1