ameron dont forget that numbers in .dat are saved as SIGNED short, not unsigned.
we finally managed to sort out most of the things for the mysterious 4000++ layers that the "elite" didn't share :
1.) set height from your source ( bmp etc. ) ( height = greyscale* 76 -9567 )
2.) heights in .dat are x2. so you will have to do a *2 multiplication
3.) set four final bits of height equal to 0
3.) add FLAG to height
flags :
#define NEU 5
#define NWU 6
#define NU 7
#define SEU 9
#define SWU 10
#define SU 11
#define EU 13
#define WU 14
#define ALLW 15
N=North, S=South, etc.
NE=NorthEast
U=Unawlkable
ALLW=All Walkable
|