Quote:
|
vaskes - why have you decided that DATA BLOCK starts with 19th byte but not 18th - i assumed that it started with 00 00 because in your version maps with flat sea bottom should ends by 00 00 but they do not.
|
yes yes i know it. it can be 00 00 or 40 00
Quote:
So it is 6 bytes structures (i think 3x16bit words).
Notice that all data in 00 00 starting strustures can be divided to 8
means 8 16 24 32 40 etc
|
yes. there are three 16bit words. first - unknown, i think this is water level, second one - unknown, i think this is terrain level. and third always equal to 00 00.
Quote:
|
As known hightmap is 16bit greyscale which means 0-65535 range of axis with step +-1
|
nope. there are very short color range on grayscale (from 63 to 128).
Quote:
so my formula was C=Z+8*(H%64)
where C - resulting coordinates for conv.dat
Z - thouse -unknown (lower limit of conv dat axis)
H - heightmap coordinate
% integer result of division.
|
this is wrong H/64 => [1,2] so there are only two meanings on your fulmula z+8 and z+16
my formula was c:= -H*32+65536 - wron too.
ok. my icq is 335916424. lets talk about it.